Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: bx83 on Fri 31/03/2017 00:57:45

Title: Check if location x,y is the location of the player character
Post by: bx83 on Fri 31/03/2017 00:57:45
How do I do this?
Tring to find the player character so they are ignored when Looking at them.
Title: Re: Check if location x,y is the location of the player character
Post by: dayowlron on Fri 31/03/2017 03:50:57
Player x and y  coordinates are player.x and player.y accordingly.
Title: Re: Check if location x,y is the location of the player character
Post by: selmiak on Fri 31/03/2017 05:44:29
so you want the look at command to go through the player char and look at what is behind the player and hidden by the player. Check the character properties in the editor, there is a clickable property in them, just turn it off.
Title: Re: Check if location x,y is the location of the player character
Post by: Khris on Fri 31/03/2017 21:30:55
Note that knowing the player's coordinates doesn't really help, unless your player sprite is 1x1 pixels.
Always ask about the actual problem (which you did), not your attempt at solving it.