Hello, I am quite new to playmaker and got some questions. I want to make a simple 2.5D Flight game. You can throttle up and down, fly up and down. Thats it so far.
Now I got the problem, that I would like to handle this with only one FSM, because I want to avoid global variables (If i have multipe planes from this one prefab the global variables will disturb each other).
The real problem is the input. If I accelerate and want to go up, the FSM hangs in the state which com first.
I will explane the FSM shortly:
The FSM stayes in the listerner event, until a key is pressed.
For every key I have a bool variable. If the key is hit, the bool goes true and the an event is called (Throttle up/ down, Nose up/down). These events change variables which are executed in the thrust event, which is the last state. After this it goes back to the listener event. If I want to hit two keys it doesn't work because the fist bool compare of the keys will always take action. The following bools are ignored.
Hope you guys know what I mean. Does anybody has a tip for me?
That would be so cool!
Thanks a lot!
Edit: Since it is only 2.5D, means X-/ Y-Axis movment but 3D objects should I maybe use the 2D actions?