I want the correct count to update when the animation finishes but the S has to click “Try Another” in order for it to update. Not sure what I am missing, yet!
I don’t have an answer for you, sorry, but I do have the same problem, so I’m curious whether you ever found out an answer or workaround for this?
I would also like to initiate a series of events without forcing the user to click on something, and I haven’t figured out yet how to do that. Requiring the user to click in order to make the action happen is ok, but it’s clunky, and it makes the whole activity less flowing and fun.
Ha! I can’t even recall writing that! Oh my, what a year. I’ll see what I can remember today
Thanks! It has indeed been quite a crazy year (alas!).
So far all I figured out is that time-ticker events can also trigger actions, and they don’t need the user to make a mouse-click. However, the ticker’s progress is not always going to map easily onto the action that you want. It doesn’t for me, in this instance.
What, precisely, are you aiming to do? You can often use the ticker to run actions with conditions to get those actions to only fire under certain circumstances.
I’m trying to make a space invaders game to teach angles. Here’s the activity:
and here’s a tweet with an animated gif of it:
Currently, after the player has successfully blasted a space invader, they need to click on some text in order to increment the score and bring out the next invader. That’s a bit clunky. I’d prefer to have this happen without needing any user-click, but my attempts to use the clicker to do this have not worked yet.
Any help greatly appreciated!
Something like this should do the trick:
- introduced a new variable called d_elay
- moved the actions that were previously in the clickable “Score!” text into a variable called N_ext
- set d_elay to increase in the ticker whenever w_on=1
- set N_ext to run whenever d_elay reaches 10
N_ext also sets d_elay back to zero, for obvious reasons.
There may be a more elegant solution than this but it seems to do the trick, and is hopefully self-explanatory enough if you want to tweak the length of the delay.
I really like this activity, by the way. The pace of the game is brutal on “faster”!