M
MikeVV
Guest
Feature Request:
Being able to toggle the visibility or adjust the alpha of a particular layer of a sprite-image through GML code would be very beneficial. Note that I'm not referring to a room layer, rather the layers that you can use in the GM Studio 2 Sprite Editor.
Use-case: Sprite image has Layer 1 which is the base-animation of a player sprite walking. Layer 2 through Layer N have additional optional equipment (helmets, armor, etc) that appear on top of the base animation. Being able to toggle the visibility of equipment layers on and off (through code) allows them to stay in-sync with the animation without having to create additional sprites or objects, so that at run-time the player can equip various items and the sprite reflects as such.
Being able to toggle the visibility or adjust the alpha of a particular layer of a sprite-image through GML code would be very beneficial. Note that I'm not referring to a room layer, rather the layers that you can use in the GM Studio 2 Sprite Editor.
Use-case: Sprite image has Layer 1 which is the base-animation of a player sprite walking. Layer 2 through Layer N have additional optional equipment (helmets, armor, etc) that appear on top of the base animation. Being able to toggle the visibility of equipment layers on and off (through code) allows them to stay in-sync with the animation without having to create additional sprites or objects, so that at run-time the player can equip various items and the sprite reflects as such.