Is it possible to make a gui follow character?

Started by Moox, Tue 22/06/2004 03:49:49

Previous topic - Next topic

Moox

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

LordHart

#1
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.

Darth Mandarb

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.

SMF spam blocked by CleanTalk