PDA

View Full Version : Loop Infinity


Jaker48895
01-23-2009, 05:04 PM
I'am making a flight simulator program with the ability to toggle the engine off and on. When the engine method is true, the engine will turn on and start running several "loop infinity" commands for the rotating prop and the engine running sound. The problem i run into with this is when the engine is turned off, the loop infinity from the engine on method are still running and will not allow the engine on method to refresh and start again being it hasent finished its first cycle!

My question; is there a way to end a method or end a loop infinity? have a "stop command"?

-any help would be great-

Ch0pStickS
01-25-2009, 09:39 PM
Here i just made a world that has example code.

The ring starts out spinning, and you press SPACE to make it stop or start.

MichaelRobinson
01-30-2009, 08:32 AM
I'am making a flight simulator program with the ability to toggle the engine off and on. When the engine method is true, the engine will turn on and start running several "loop infinity" commands for the rotating prop and the engine running sound. The problem i run into with this is when the engine is turned off, the loop infinity from the engine on method are still running and will not allow the engine on method to refresh and start again being it hasent finished its first cycle!

My question; is there a way to end a method or end a loop infinity? have a "stop command"?

-any help would be great-

Jake your dumb... if you need help i'll show you.