Forum Discussion
MorganLiffers-d
2 years agoCommunity Member
Whack a Mole Help
I'm creating a recall whack a mole game for a course. I have a trigger for playing the "wrong" sound when the user doesn't click on the correct mole for the displayed question. I have a trigger for ...
WaltHamilton
2 years agoSuper Hero
You have a clever way to show the moles at random, but it is causing timing problems. All of the layers are showing at once, including the Activate Moles layer. The last layer shown is on top, but doesn't cover any layer below it, including Activate Moles. All the triggers on all the layers (including the base) are active all the time. Therefore, any click is outside the checkmark on Active Moles, and causes the textbox to change its state. That happens before the list of triggers on the top layer is completed, so even a correct click is considered wrong because the state of the textbox has changed. You need a way to delay changing the state of the textbox until the click is scored.
The attachment shows one way to do that.
Related Content
- 7 months ago