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

#1 2012-11-04 23:16:00

mattysplatt
New Scratcher
Registered: 2012-11-04
Posts: 1

Make sprite gradually get faster

I have tried using the velocity variable and setting it then increasing it, but it doesnt work and i am not sure. I just want me sprite to slowly get faster
THanks

Offline

 

#2 2012-11-05 05:17:04

rlojunior
Scratcher
Registered: 2010-08-11
Posts: 59

Re: Make sprite gradually get faster

mattysplatt wrote:

I have tried using the velocity variable and setting it then increasing it, but it doesnt work and i am not sure. I just want me sprite to slowly get faster
THanks

Hey !
Try this. It will work.
( there are many possibilities to increase the velocity. This is just one option. I used the physics idea of aceleration. The value "2" at my script is the aceleration.)

when gf clicked
reset timer
forever
     change x by <(2)*(timer)>  

Last edited by rlojunior (2012-11-05 05:23:54)

Offline

 

#3 2012-11-05 10:55:50

thebriculator
Scratcher
Registered: 2011-07-11
Posts: 500+

Re: Make sprite gradually get faster


set [speed v] to [1]

forever  

move (speed) steps

change [speed v] by (1) //higher to increase faster

end

tested; it should work

or this:

set [speed v] to [1]

forever  

move (speed) steps

change [speed v] by (speed)

end

Last edited by thebriculator (2012-11-05 10:57:46)


.     http://tiny.cc/2cwgpw    http://tiny.cc/viwgpw    http://tiny.cc/iwwgpw

Offline

 

Board footer