Hello,
I have a sphere (player) what is bouncing always by physics. I want to control it with left and right arrow. It's working when I go to right with this:
right arrow is down
- Apply Physics force (force X + 1)
I can set the maximum "speed" by this:
Player; compare velocity on X; greater than 150
- Apply physics force (force X - 1)
It's working properly, but when I use it with left movement (I tried to use opposite values) it's happened something weird. I'm almost sure that the problem is:
left arrow is down
- apply physics force (force -1)
. The "-1" value not working well but I have no more idea how can I use this force to left movement.
I use a variable to separate the left and right movement, so the program makes a distinction between these two side.
Thanks!