Sprite Stack
Create sprite stack either from repeating a single image or stacking different images using array.
Node Data | |
|---|---|
Display name | |
Sprite Stack | |
Internal name | |
Node_Sprite_Stack | |
Inheritances | |
| Node_Processor | |
| Node_Sprite_Stack | |
Inputs | |
Surface | |
surface |
Base Shape |
enum |
Output Dimension Type |
vec2 |
Dimension |
vec2 |
Relative Dimension |
enum |
Array Process |
Stack | |
int |
Stack Amount |
vec2 |
Stack Shift |
bool |
Move Base |
vec2 |
Position |
rotation |
Rotation |
Render | |
color |
Stack Blend |
slider |
Alpha End |
enum |
Highlight |
color |
Highlight Color |
slider |
Highlight Alpha |
Outputs | |
surface |
Surface Out |
Attributes | |
| Color Depth | |
Sprite stack is a way to create a 3D like image using 2D images by stacking them on top of each other.
![]()
Properties
| Surface | |
| Output Dimension Type | Method for getting output dimension. |
| Array Process | When inputing array of surfaces. Whether to create multiple outputs for each surface or combine all surface into one stack. |
| Stack | |
| Stack Amount | Amount of layers. |
| Stack Shift | Shifting per layer. |
| Move Base | Shift the origin to the last stack layer and invert per-layer shifting. |
| Position | Origin position. |
| Rotation | Rotate surface before stacking. |
| Render | |
| Stack Blend | Multiply stack by color. |
| Highlight | Apply different color to the layer before the last to create highlight effect. |
| Highlight Color | Color of the highlight layer. |
| Highlight Alpha | Opacity of the highlight layer. |
Stacking Positions
When stacking, each copy will be shifted by the amount set by the Stack Shift properties. The final position can also be adjusted by the Position.
The Move Base property will revert the position such that the original image got shifted instead of the copies.
![]()
Rendering Properties
Stack Blend will blend the copies with a new color. You can make make the copies fade out over time with the Alpha End property.
![]()
The Highlight property allow you to change the color of the edge.
![]()
Related Links
- Base Code: /scripts/node_sprite_stack/node_sprite_stack.gml
- Shader [sh_sprite_stack_highlight]: /shaders/sh_sprite_stack_highlight/sh_sprite_stack_highlight.fsh