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

#1 2013-05-03 21:59:55

NACHOTIME13
New Scratcher
Registered: 2013-02-07
Posts: 9

Help with Script

I am making a game and i was wondering how to make a sprite move forward only by tapping, not being able to work when the button is held. thanks to whoever answers ma question!!!  smile

Offline

 

#2 2013-05-03 22:51:10

joshuaho
Scratcher
Registered: 2012-08-20
Posts: 100+

Re: Help with Script

NACHOTIME13 wrote:

I am making a game and i was wondering how to make a sprite move forward only by tapping, not being able to work when the button is held. thanks to whoever answers ma question!!!  smile

Tapping?  hmm


Did you know that you can go to space and see Mars by clicking here?

Offline

 

#3 2013-05-04 08:06:48

dracae
New Scratcher
Registered: 2013-04-05
Posts: 42

Re: Help with Script

Try this for moving up (Is this or definition of forward?)

when gf clicked
forever if <key [up arrow v] pressed?>
wait until <not <key [up arrow v] pressed?>>
change y by (10)
Or, if your definition of moving forward is this.
when gf clicked
forever if <key [up arrow v] pressed?>
wait until <not <key [up arrow v] pressed?>>
move (10) steps

Offline

 

Board footer