Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mattwilldev/stacked-sprite-plugin

Repository files navigation

Godot v3.x GitHub license

A simple Godot addon that adds a StackedSprite node for quickly setting up stacked sprites.

Stacked Sprite: a stack of sprites layered on top of each other creating a fake 3-dimensional object.

Table of Contents

Installation

Copy the contents of addons/stacked_sprite into the same folder in your project, and activate it in your project settings.

Once activated the StackedSprite node should be accessible under the existing nodes.

Usage

Quickstart

A demo scene is included in this repo which includes an example stacked sprite for reference.

Prerequisites

Create a horizontal sprite sheet that represents your stacked sprite. This sprite sheet should consist of multiple frames with each frame representing one layer in the stacked sprite, with the bottom-most sprite as the first frame.

This can be achieved with a:

Or, use the example pine tree sprite sheet in this repo: demo/pine_tree.png

Add StackedSprite node

Add a StackedSprite node to your scene. Add StackedSprite node

This node has a few properties:

Property Description
Texture The .png sprite sheet file representing the stacked sprite.
HFrames The Number of horizontal frames in the spreet sheet.
Show Sprites A toggle to show the stacked sprite in the editor.
Rotate Sprites A toggle to rotate the stacked sprite in the editor.
Stack Offset The y-position offset between each frame of the stacked sprite. Use a value greater than 1 for a more 'exploded' look.
Rotation Speed Speed at which the stacked sprite rotates when Rotate Sprites and Show Sprites is enabled.

Credits

Jon Topielski: For the Stacked Sprites in Godot video tutorial that this project is based on.

License

This project is MIT licensed.

About

A simple addon to create fake 3D-like models using 2D sprites.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published