i am making a game with lots of jumping and need a very good jumping script like the one on the game push. can you please help me.
Offline
well i mostly get it its mainly gravity that i dont get. can u help me by putting blocks on here? but im a lil rusty on jumping
Offline
realistic jumping/gravity with acceleration.
Offline
bump
Offline
You need a variable called <{ xvel }> with a block at the bottom that says: <if><touching color[ set <{ xvel }> to 0 <else> change xvel by -0.2
Then, at the bottom squeeze in a Change x by xvel.
For the jump, say If up arrow pressed, set xvel to any number you want.
(Put this inside the "If" for the "If Else" block.
Offline
okay thanks i changed it a little buti have it working now
Offline
I KNOW ONE! I made it long time ago. Hold on while I dig it up....
Offline
Okay I can't post it here in words so I'll put it online and give you the link
Last edited by militarydudes (2010-07-01 22:51:30)
Offline
try this but take out the
<if><key[ up ]pressed?>
<set{ G }to( 15
etc.
see the project here
Offline
A little advice... start small! In my opinion, the biggest problem in learning game programming has always been trying to write something too complicated, getting discouraged, and giving up. But definitely use these brainiacs around here for advice, why not?? What I taught myself to play on Guitar in 10 years I could have learned in 1 year if I'd had an instructor >=P and they co$t money lol.
Last edited by Locomule (2010-07-02 11:05:07)
Offline
http://scratch.mit.edu/projects/Donkeys … ts/1166080 here you go its on my other account
Last edited by militarydudes (2010-07-02 19:17:43)
Offline