Stack Sprite bundle

5
6
0
1

bundle made to make sprite stacking 100x easier for beginners.

SETUP: enter the bundle and change the spawner to this type, and the animation to your sprite stack layers. you can also use the two numbers instead of the two inputs.

INPUTS: layers: the amount of layers your stack will have. this should be the size of your animation. +height: the height offset in between layers. spawn: spawn the stack delete: delete the stack. delete also destroys the object.

OUTPUTS: index: the index of this object in the stack

KEEP IN MIND: only run the "spawn" input ONCE!

do not run animations or change display order while there is a sprite stack running.

WARNING!! DO NOT USE STARTING VALUE (AKA DON'T ADD ANY NUMBER OTHER THAN 0 IN THE SPAWN/ATTACH/EMIT INPUT OF THESE BEHAVIORS) IT WILL NOT WORK IF STARTING VALUE OF THE BASE IS ANYTHING OTHER THAN 0

Editor