Alice Community  

Go Back   Alice Community > Alice 2 > How do I...?

Reply
 
Thread Tools Display Modes
increasing plane speed every 10 seconds
Old
jwags
Junior Member
 
Status: Offline
Posts: 12
Join Date: Sep 2011
Location: brotherwags@aol.com
Default increasing plane speed every 10 seconds - 12-15-2011, 06:51 PM

ok so i have this plane, and there are 3 boxes in front of it(not showing)
then there are three balls, if ball one goes behind plane it moves to box 1, and ball 2 goes behind it moves to box 2, and same for 3...
anyway if the ball its the plane the plane dies...


i have the plane move forward at 25 m per second

the plane moves 25mps, i want it so that every 10 seconds the speed increases by 25m
i did a variable in a class lvl method saying,
plane move at (variable speed) per second with duration of 10 seconds

i called the method in the world and said methodName speed=25m+10
or something close to that

so it did the right speed then after 10 seconds it sped up even more. but 1 problem. it never sped up again after that...


any ideas? thanks!

Last edited by jwags; 12-15-2011 at 07:47 PM.
   
Reply With Quote
Old
TauTrumpsPi
Senior Member
 
TauTrumpsPi's Avatar
 
Status: Offline
Posts: 399
Join Date: Mar 2011
Location: The diamond layer
Default 12-16-2011, 10:10 AM

The variable value will reset every time you play the method. Make it world level instead.

Post your world if this doesn't help


--------------------------------------------------------------------------------------------------------------------------
I have plenty of common sense. I just choose to ignore it.
-Calvin and Hobbes

Wondering about my Avatar?
http://en.wikipedia.org/wiki/Tardigrade

Wondering about my username?
http://www.youtube.com/watch?v=jG7vhMMXagQ
   
Reply With Quote
Old
jwags
Junior Member
 
Status: Offline
Posts: 12
Join Date: Sep 2011
Location: brotherwags@aol.com
Default 12-17-2011, 08:07 AM

Quote:
Originally Posted by TauTrumpsPi View Post
The variable value will reset every time you play the method. Make it world level instead.

Post your world if this doesn't help
thanks i actually figured it out like 4 hours later, i just totally forgot i posted this
   
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Copyright ©2020, Carnegie Mellon University
Alice 2.x 1999-2012, Alice 3.x 2008-2012, Carnegie Mellon University. All rights reserved.