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

#1 2010-04-12 22:52:36

SammyJames
Scratcher
Registered: 2010-04-11
Posts: 6

Any Ideas on how to .....

Trying to figure out how to increase ball velocity after timer reaches 0. The timer will then start at the designated second and continue to countdown to 0. So that each time the timer reaches 0, the ball velocity gets progressively faster. Any Ideas?

Offline

 

#2 2010-04-13 01:00:41

Jonathanpb
Scratcher
Registered: 2008-07-25
Posts: 1000+

Re: Any Ideas on how to .....

You're using a variable to tell the ball how much to move, right? In that case, just increase the variable; the ball will move faster.


"Human beings... must have action; and they will make it if they cannot find it.
-Charlotte Brontë

Offline

 

#3 2010-04-13 08:51:58

SammyJames
Scratcher
Registered: 2010-04-11
Posts: 6

Re: Any Ideas on how to .....

The timer is actually the variable. I'm using Motion  "move _  steps" to regulate velocity.

Offline

 

#4 2010-04-13 12:36:48

markyparky56
Scratcher
Registered: 2008-03-20
Posts: 1000+

Re: Any Ideas on how to .....

Does this help?
http://img210.imageshack.us/img210/8916/velocityballscripts.gif


http://j.mp/jgVnTq
Check out my game engine development site: NewDawn I'm a Level 171 Scratcher.I am http://bit.ly/nkvLNT

Offline

 

#5 2010-04-13 23:09:25

SammyJames
Scratcher
Registered: 2010-04-11
Posts: 6

Re: Any Ideas on how to .....

Dude, you're awesome! Thanks so much! That worked perfectly. Now I'm one step closer to sharing this game with the rest of the Scratch community. Thanks again.

Offline

 

Board footer