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

#1 2009-03-29 08:07:12

Zezin
Scratcher
Registered: 2009-02-28
Posts: 1

Walking too sensitive?

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  smile

Offline

 

#2 2009-03-29 08:50:02

bosox397
Scratcher
Registered: 2008-02-17
Posts: 1000+

Re: Walking too sensitive?

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


Dear Scratch Users,
I'm done with scratch, or at least making projects. I have made one last big game, thats both fun and teaches a lesson about water. It'd mean a lot if you gave me feedback.                              http://scratch.mit.edu/projects/bosox397/569201

Offline

 

Board footer