Forum Discussion
JudyNollet
7 months agoSuper Hero
If the content is in a separate object behind the rectangle, add a trigger to the rectangle that changes its own state to Hidden when the user clicks it.
- Note: Do not add a Hidden state to the rectangle. The program knows how to hide something. If you add a state with that name, you'll confuse it. 😆
If the content is in another state of the same object, you could add a trigger that changes the rectangle to that state when the user clicks it.
An even simpler method would be to put the content in a Visited state of the rectangle. Then it will automatically change to that state when clicked--without any triggers. (The built-in states come with some built-in functions.)