I Wanna Community

Fangames => Game Design => Programming Questions => Topic started by: RandomFangamer on May 02, 2015, 03:15:03 PM

Title: Check the players direction in Gamemaker Lite?
Post by: 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
Title: Re: Check the players direction in Gamemaker Lite?
Post by: YoSniper on May 02, 2015, 03:24:05 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
player.image_xscale. It's 1 when facing right and -1 when facing left.