Discuss Scratch

Epng1
New Scratcher
1 post

Jumping problem

I took a jumping script from the scratch Wiki and tried it out. The problem is that the sprite keeps going up and up on the screen and won't go back down. I checked it a couple of times and it was correct, so I don't know what to do. The script is the one on the very bottom of the page of Scratch Wiki If you search jumping. If somebody could help that would be very nice.
deenfoxx
Scratcher
100+ posts

Jumping problem

Epng1 wrote:

I took a jumping script from the scratch Wiki and tried it out. The problem is that the sprite keeps going up and up on the screen and won't go back down. I checked it a couple of times and it was correct, so I don't know what to do. The script is the one on the very bottom of the page of Scratch Wiki If you search jumping. If somebody could help that would be very nice.

Just change it to repeat (21) instead of repeat (20). They were probably forgetting there is a point where “y vel” is zero.

Example: https://scratch.mit.edu/projects/155602322/

Last edited by deenfoxx (April 13, 2017 23:49:35)

Powered by DjangoBB