PDA

View Full Version : help with a flight sim


Trango Fett
10-26-2009, 05:01 PM
I'm trying to make a flight sim, but i've hit a snag.

how do i make an action happen only while i hold down the key. (ex: a plane roll right while you hold the right arrow) :confused:

Trango Fett
10-26-2009, 05:15 PM
oh, and how do i make an action happen when something hits something else?:confused:

Dameria
10-26-2009, 05:29 PM
To answer the first part, make an event on the top right, and do "When a key is typed". Then, when the event is in there for the key you want, right click it and press Change to, then While a key is pressed.

x2495iiii
10-26-2009, 05:47 PM
To answer the second part, have a method which loops constantly (infinity loop, while the world is running, etc.) which checks to see if the plane is within object's width of object (object's width can be found under functions) and acts accordingly.

Trango Fett
10-26-2009, 05:48 PM
thanks everyone:D