Hi, I am not a noob at Scratch Programming but I need some help. I am using my--Just look lol.
[blocks]
<when green flag clicked>
<set {Y Velocity }to(0
<forever>
<change {YVelocity}by( -1
<change y by( Y Velocity
<if><touching color[ my ground color
<set{YVelocity }to(1
<if><key[up arrow ]pressed?>
<set {YVelocity }to( 15
[/blocks]
Sorry it looks sloppy because that's my first time doing it. So the jumping works fine but the problem is, I have when Right Arrow Pressed, I have the switch to
costume something move something steps and wait something secs and things like this. So when I jump, I like walk on air.
HOW DO I MAKE IT SO I DONT WALK IN AIR AND JUST JUMP USING THE JUMP COSTUME? Thanks
Offline
Try creating a variable called
in air?
and it will = 1 when hes in the air and 0 when hes not and then make the walking script if in air? = 0
continue with all the all other stuff
Offline