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

#1 2012-10-24 18:50:01

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Help with raising and lowering speed

how do make a platformer where the players jump speed lowers near the end of the jump. also how do you make it when the player falls he drops faster


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

#2 2012-10-24 19:10:19

kayybee
Scratcher
Registered: 2009-12-07
Posts: 1000+

Re: Help with raising and lowering speed

You'd have to create a variable. Let's call it y-vel for y velocity.

When your character jumps, set y vel to 4 (adjust the 4 to match your needs) and make it change y by yvel and set yvel to yvel*0.9 (change the 0.9 if you need to). put an if in there saying "if yvel < -7 (change that) set y vel to -7". repeat this until touching black (or your floor color).

Offline

 

#3 2012-10-24 19:13:23

fillergames
Scratcher
Registered: 2012-10-15
Posts: 1000+

Re: Help with raising and lowering speed

Thanks


http://i50.tinypic.com/2ufvxc5_th.gif Grammer? Whats grammar?

Offline

 

Board footer