Legacy GM Help using draw_sprite with relative coordinates.

AiNaKa

Member
Anytime i use draw_sprite using relative coordinates such as:
"draw_sprite(sprite,0,x,y);"
The sprite will become displaced as the object moves, but i want the sprite to stay fixed relative to the object, and the problem is even further amplified when dealing with views in a room. Is there any way i can draw a sprite relatively to an object so that it doesn't move away from the object when it moves?
 
A

Andy

Guest
Are you drawing in the Draw event, or Draw GUI event? Also, is this event being ran from within the moving object or, ran from within another (for example a global controller) object?
 

AiNaKa

Member
I was indeed using the Draw GUI event. I was creating a GUI out of objects that also uses a few drawn sprites, so i assumed using Draw GUI was the one to use. The Draw event worked though, thanks for the help!
 
Top