This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-11-02 17:48:50

14garlar
New Scratcher
Registered: 2012-09-04
Posts: 1

Circus Atari... Need help

So for school i'm creating a circus atari game. I just need help to get the "bouncing guy" to "jump" in a parabola shape.  If anyone has any ideas let me know  smile

Offline

 

#2 2012-11-02 21:08:10

ErnieParke
Scratcher
Registered: 2010-12-03
Posts: 1000+

Re: Circus Atari... Need help

Here's something you could use for the jumping:

set [y velocity v] to (7)//Adjust this to make the jump higher.
repeat until (touching [ground v]?)
 change y by (y velocity)
 change [y velocity v] by (-.5)//Adjust this to change the strength of  gravity.
end
You might also need to include a block to change the x position of the sprite in the repeat loop, but other than that, this should work. I hope that this helps!

Last edited by ErnieParke (2012-11-02 21:08:29)


http://i46.tinypic.com/35ismmc.png

Offline

 

Board footer