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

#1 2010-03-03 12:53:37

CtotheODY
Scratcher
Registered: 2010-02-08
Posts: 11

How to prevent a sprite from flying

I have a sprite in my game but if you hold the up arrow key, he just flies up. How would i get it so that even if the key is held he will not fly? The game thats having the problem is in my profile and its called Ninja Star Beta. Please help with this very frustrating problem.

Offline

 

#2 2010-03-03 13:30:17

juststickman
Scratcher
Registered: 2009-05-31
Posts: 1000+

Re: How to prevent a sprite from flying

Put the jump script inside this (the up arrow key thing, put the stuff inside here):
<if><touching color[ that red color
<<<<<<<The jump script>>>>>>>>>>>>
<end>


http://is.gd/iBQi2 Add grob to your sig and help with world dominiation!http://is.gd/iBQ9Q                                                             Hey guys, we're seriously naming our team bob?

Offline

 

#3 2010-03-03 19:49:56

CtotheODY
Scratcher
Registered: 2010-02-08
Posts: 11

Re: How to prevent a sprite from flying

Thanks. Had to tweak it a little but it works better now.

Offline

 

Board footer