Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: KodiakBehr on Sat 18/08/2012 15:46:13

Title: Check direction a character is facing.
Post by: KodiakBehr on Sat 18/08/2012 15:46:13
This should be straightforward, but I'm afraid I'm at a loss.

Is there a way to check which direction a stationary (or moving) character is facing?
Title: Re: Check direction a character is facing.
Post by: Khris on Sat 18/08/2012 17:29:43
Just check the .Loop:

Code (ags) Select
  if (player.Loop == 2) Display("The player is facing right.");
Title: Re: Check direction a character is facing.
Post by: KodiakBehr on Sat 18/08/2012 20:44:50
Shoot, thanks again!