Basic Game Function Help - Jumping from top to bottom of screen

I'm making a basic iPhone game in which you control a square that is moving right through a tunnel, and spikes are coming at you that you have to dodge.
Here's my problem:
I want to make it so (starting with the square on the bottom platform) when you press anywhere on the screen, he jumps quickly to the top platform and stays there
Then, when you press anywhere on the screen again, I want him to jump back down to the bottom platform and stay put
Now when I tried to use functions like "Move To", "Move", "Accelerate Toward" Etc, they always seem to glitch up, (ie. when I use two opposing "Move To" functions, the square will get stuck at the top)
What's a simple way I can implement this game feature?
Thanks a lot!
Here's my problem:
I want to make it so (starting with the square on the bottom platform) when you press anywhere on the screen, he jumps quickly to the top platform and stays there
Then, when you press anywhere on the screen again, I want him to jump back down to the bottom platform and stay put
Now when I tried to use functions like "Move To", "Move", "Accelerate Toward" Etc, they always seem to glitch up, (ie. when I use two opposing "Move To" functions, the square will get stuck at the top)
What's a simple way I can implement this game feature?
Thanks a lot!
Comments
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
For the future please dont create multiple threads on the same topic. You have 2 threads right at the top asking the same thing, and both have answers in them.
cheers