How to make one key for two actions?
Let's say I set the key "spacebar" the two actions are "platform.gravity= -1500" and I want after pressing the space bar I was able again to click on it and turn on the code "platform.gravity= 1500".
But there is one thing. When I press the space bar, the engine thinks that I perform the action "platform.gravity = -1500" and not "1500". And all the same - How to put 2 actions in the occupied a key on the keyboard?
I hope you know what I said now.
P.S: Sorry for my English.