Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Moox on Tue 22/06/2004 03:49:49

Title: Is it possible to make a gui follow character?
Post by: Moox on Tue 22/06/2004 03:49:49
Well for the rpg templates combat system I want the damage dealt numbers to pop up right where the character is. Is it possible to make a text display gui that follows the character
Title: Re: Is it possible to make a gui follow character?
Post by: LordHart on Tue 22/06/2004 05:02:16
I suppose you could make the GUI have the location of the character this way:

In Repeatedly Execute:

SetGUIPosition(GUI,character[CHAR].x,character[CHAR].y);


And to offset it either higher on the character, to use:

SetGUIPosition(GUI,character[CHAR].x,character[CHAR].y -NUMBER);


Which would cause it to go whatever the amount higher on the character. Not entirely sure if that would work, but it's worth a shot.
Title: Re: Is it possible to make a gui follow character?
Post by: Darth Mandarb on Tue 22/06/2004 18:41:07
That should work.

I've done the same thing, only using the mouse x y location ... so I don't see why it wouldn't work relative to character location.