Pages: 1
Topic closed
I need a jumping script for the character in my game.
Offline
Use the many tutorials. Google search or just:click here
Offline
Thank you fg123
Offline
Use velocities for this. You'll need a variable called Yvelocity.
<when green flag clicked> <set [Yvelocity] to (0)> <forever> [ ]<if <touching [ground]>> [ ][ ]change [Yvelocity]by [15] [ ][ ][ ]<if <key [up arrow] pressed?>> [ ][ ][ ][ ]<set [Yvelocity] to [15]> [ ]<change y by (Yvelocity)> [ ]<change [Yvelocity] by [-1]>
There you go. The 15 can be changed to any value. That will change how far the sprite will jump.
EDIT: Darn, fg123 beat me to it.
Last edited by floatingmagictree (2009-10-14 19:00:02)
Offline
I made that script first.
http://scratch.mit.edu/projects/archmage/72848
Offline
archmage wrote:
I made that script first.
http://scratch.mit.edu/projects/archmage/72848
Yeah, archmage did, then demosthenes made a Sticky thread called Velocity (it's not stickied anymore).
Offline
Thank you everyone for your help, I really appriciate it.
Offline
Topic closed
Pages: 1