GMS 2 How can I delete the useless areas of sprite

Hell wither

Member
I want to remove the white area of this sprite, because the invisible edge may bother the interaction, is there any button to do that?
I can't upload pictures due to some unknown reason. If anyone could help me, I can send the problem by mail, thanks
 

EvanSki

Raccoon Jam Host
theres an trim option for the layers in the sprite editor

edit: if youre worried about interaction you should focus on the sprite mask as thats whats used for collisions and such not the actual sprite look itself
 
Last edited:

Sybok

Member
Usually these areas get optimised out of image anyway during texture page creation, unless you tell it specifically not to do so.
 

Yal

šŸ§ *penguin noises*
GMC Elder
because the invisible edge may bother the interaction
Unless you manually set the collision mask to "Full Image", empty edges around the sprite will be ignored when computing the hitbox. So you probably don't need to worry about this.
 
Top