Hello Constructors!
I am using Construct 2!
The point is that on my target device there is ONLY ONE BUTTON AT TIME! (only LEFT... then UP... then LEFT.. you can hold only one button)
For my platform (TV with remote control), it is important that I have a control system where I can make the player move, but he keeps moving, so I can jump horizontally.
The rules are like this.
Hold Right: x velocity increases to max
Let go of right: x velocity decreases to 0
Hold right: x velocity increases
press up: jump - x velocity stays the same until I press left right/ to change it OR I hit the ground, then it starts decreasing again.
So basically -
X velocity goes back to 0 if you are on the ground
X velocity goes to +MAX if you hold the RIGHT
x velocity goes to -MAX if you hold LEFT
I have found a Javascript code as well which has the above logic but I could not implement it in the Construct 2.
Here is the code: https://docs.google.com/document/d/15Sdv9p3hMugA7W8QQ-Fj7luX_XYaGBAmuMQaWny0lKg/edit?usp=sharing
Your response in this regard will highly be appreciated.
Thanks