Fangames > Programming Questions
Check the players direction in Gamemaker Lite?
(1/1)
RandomFangamer:
Hello,
In my fangame I have an object which the player can throw to break blocks.
However, the player can only throw the object in one direction.
What I want to do is have the object get thrown in the direction the player is facing. (left or right)
Is there any way to check which way the player is facing?
Thanks,
RandomFangamer
YoSniper:
--- Quote from: RandomFangamer on May 02, 2015, 03:15:03 PM ---Hello,
In my fangame I have an object which the player can throw to break blocks.
However, the player can only throw the object in one direction.
What I want to do is have the object get thrown in the direction the player is facing. (left or right)
Is there any way to check which way the player is facing?
Thanks,
RandomFangamer
--- End quote ---
player.image_xscale. It's 1 when facing right and -1 when facing left.
Navigation
[0] Message Index
Go to full version