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

#1 2012-07-03 12:22:38

bertdog
Scratcher
Registered: 2012-06-12
Posts: 100+

time to move!

I know how to move forward and left and right but I don't know how to move the sprite automatically forward without any buttons pressed. is there a script that can do that?


"Losers quit when they are tired,Winners quit when they are done." smile http://blocks.scratchr.org/API.php?user=bertdog&action=onlineStatus

Offline

 

#2 2012-07-03 12:30:17

berberberber
Scratcher
Registered: 2012-03-08
Posts: 1000+

Re: time to move!

when gf clicked
forever
move (speed) steps


http://i47.tinypic.com/2iaa73k.png

Offline

 

#3 2012-07-03 12:31:20

AtomicBawm3
Scratcher
Registered: 2009-06-27
Posts: 1000+

Re: time to move!

bertdog wrote:

I know how to move forward and left and right but I don't know how to move the sprite automatically forward without any buttons pressed. is there a script that can do that?

Depends what you mean by automatically...you could do something as simple as this:

when gf clicked
point in direction (pick random (1) to (360))
forever
move (3) steps
if on edge, bounce


http://i50.tinypic.com/j0yw0p.jpg

Offline

 

#4 2012-07-03 12:32:28

powerpoint56
Scratcher
Registered: 2012-04-19
Posts: 500+

Re: time to move!

Well, if you want it to move automatically forward right when the project starts, you'd do this:

When gf clicked
Move ( ) steps //put how far you want it to go in the blank
Then you could put a repeat or forever around that, if you wanted.
If this is not what you meant, let me know and I'll be happy to help more!


http://i48.tinypic.com/2072ctw.gif

Offline

 

Board footer