How do I change the relative position of a sprite in a game object. For example I have npc holding a sheild at an offset(in front of his facing direction) I want to be able to move the sheild towards his other direction with a sprite function such as sprite.set_relative_position(url, pos). Im already aware of hflip which only mirror its horizontal orientation.
Sprites don’t have a position property at runtime. You can add a child game object with your shield sprite on it and move that around however you like.
Thanks but the solution I used what to make the sheild have an alpha space where the npc would stand and hold the sheild and just use hflip. works perfectly.
1 Like