Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: on Tue 01/07/2003 10:13:17

Title: Player co-ords
Post by: on Tue 01/07/2003 10:13:17
Hullo....

I want something to enter the screen were the player is.  But the player can move!!!!!  How do I record the position???


Help please :-\
Title: Re:Player co-ords
Post by: Squinky on Tue 01/07/2003 10:29:09
there are the
character[EGO].x and y references


so, if you want the "somethingto pop up when the char stands on a hotspot or something just put something to make the character or object your using appear at the same spot

character[SOMETHING].x=character[EGO].x;
character[SOMETHING].y=character[EGO].y;

or something like that, don't do it while the something is moving though, if you want to have him appear and move toward the char, then do as above just with a plus or minus to the char xy position, followed by a movecharacter or something...