D
Dmitri Pisarenko
Guest
Hello!
I have a room in which the player object is falling from top to bottom. I want the user to be able to move the player object to right and left during its fall.
For this purpose, I created the event handler "Key up - left arrow key" and put the following code into it:
physics_apply_local_force(0, 0, -50,0);
But when I start the game, I see the player object falling, but no horizontal movement, when I press and release the left arrow key.
What can I try in order to be able to move the player object left and right as it falls?
Thanks in advance
I have a room in which the player object is falling from top to bottom. I want the user to be able to move the player object to right and left during its fall.
For this purpose, I created the event handler "Key up - left arrow key" and put the following code into it:
physics_apply_local_force(0, 0, -50,0);
But when I start the game, I see the player object falling, but no horizontal movement, when I press and release the left arrow key.
What can I try in order to be able to move the player object left and right as it falls?
Thanks in advance