Updated
-----
I've sorted it out - I moved the "Every" sub-event out as it's own event (no need for while) and it works. I don't know why it didn't work when it was a sub-event of the touch event.
Thanks for your help Sargas
-----
Sargas, I'm having some trouble;
- I created 2 clones of my target, one called SeekerX and the other SeekerY
- On touching a target I create an object;
- SeekerY (Target.X, starting y position)
- SeekerX (starting x position, Target.X)
This looks good so far, but now I have to move them to create the animation effect.
So I add a sub event;
- Every 2.0 seconds: SeekerX | Set X to SeekerX.X + 40
When I run the game, the SeekerX object moves one block across, but no further...
So I try a while loop;
- While SeekerX.X < Target.X { SeekerX | Set X to SeekerX.X + 40 }
The seekerX object instantly moves to the Target.X position.... too fast, need to slow it down
So I combine the while loop with the delay (while SeekerX.X < Target.X { Every 2.0 seconds {SeekerX | Set X to SeekerX.X + 40) }} when I click a target nothing appears any the tab becomes unresponsive... I guess there is something wrong with my loop, but logically it seems to make sense.
thoughts?