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

#1 2011-11-15 10:48:44

katieclark1
New Scratcher
Registered: 2011-10-31
Posts: 4

Make a sprite move faster

I am making a game where I want to have my sprite go faster with how many points I receive.  Is there a way to do that?

Offline

 

#2 2011-11-15 11:22:56

joty231
New Scratcher
Registered: 2011-04-11
Posts: 10

Re: Make a sprite move faster

you could make 2 variables one with how many points you have and another called speed and have the scripts like this
[blocks]
<forever>
<set{speed  }to( ((<{ points }>  </> 10 ))
[/blocks]

Offline

 

#3 2011-11-15 11:25:58

joty231
New Scratcher
Registered: 2011-04-11
Posts: 10

Re: Make a sprite move faster

and then set the  change  x by to change x by speed
[blocks]
<forever>
<change x by( <{ spped }>

Offline

 

#4 2011-11-16 00:22:34

jji7skyline
Scratcher
Registered: 2010-03-08
Posts: 1000+

Re: Make a sprite move faster

Are the points stored in a variable? Try the first script. If the sprite moves too fast, try the second script and change the "10" to a different number to adjust the speed.

http://i40.tinypic.com/faora8.jpg

Last edited by jji7skyline (2011-11-16 00:23:31)


I don't know why you say goodbye, I say hello!  big_smile

Offline

 

#5 2011-11-16 07:04:15

Daroach1
Scratcher
Registered: 2011-09-11
Posts: 1000+

Re: Make a sprite move faster

Change speed by 0.1, Change X by speed


http://i47.tinypic.com/v83mhl.png

Offline

 

#6 2011-11-16 11:48:43

RedRocker227
Scratcher
Registered: 2011-10-26
Posts: 1000+

Re: Make a sprite move faster

Questions about Scratch belon in the 'All About Scratch' forum; you'll probably get better answers there as well.  smile


Why

Offline

 

Board footer