TheBroman90
Member
My enemies consist of multiple body parts. The parts have their sprite origin set so they follow the body and animates correctly.
But when I kill the enemy I want the body parts to fly all over the place. Then I want the body parts sprite origin to be centered instead so they rotate from the middle. I found this thing called sprite_set_offset that can change the origin of a sprite. But it says: This function affects the sprite resource so that all further instances with this sprite will have the same offset.
I only want to affect the sprite used by the object, not the sprite resource. Is this possible?
But when I kill the enemy I want the body parts to fly all over the place. Then I want the body parts sprite origin to be centered instead so they rotate from the middle. I found this thing called sprite_set_offset that can change the origin of a sprite. But it says: This function affects the sprite resource so that all further instances with this sprite will have the same offset.
I only want to affect the sprite used by the object, not the sprite resource. Is this possible?