Here is what I want to have happen:
- I press the number 5.
- the Die (a sprite object with 2 behaviors on it: Sine and Timer) shakes for half a second and then changes value.
- The step above repeats 10 times.
- After 10 repetitions (5 total seconds) it stops shaking and displays the final value.
Below is my code, but it's not working (I think it's all happening in an instant before I can even see it).
BTW, I'm trying to use Timer because when I looked up examples with "wait" or "every x seconds", I kept seeing advice that said to use the Timer instead.
What am I doing wrong (am I even close)?