GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - mattwilldev/stacked-sprite-plugin: A simple Godot addon to create fake 3D-like models using 2D sprites.

BranchesTags
Open more actions menu

Latest commit

 

History

11 Commits
11 Commits

Folders and files

NameName
Last commit message
Last commit date
addons/stacked_sprite
addons/stacked_sprite
 
 
demo
demo
 
 
.gitignore
.gitignore
 
 
LICENSE.md
LICENSE.md
 
 
README.md
README.md
 
 
default_env.tres
default_env.tres
 
 
icon.png
icon.png
 
 
icon.png.import
icon.png.import
 
 
project.godot
project.godot
 
 
stacked_sprite_demo.gif
stacked_sprite_demo.gif
 
 
stacked_sprite_node.png
stacked_sprite_node.png
 
 
stacked_sprite_node.png.import
stacked_sprite_node.png.import
 
 

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
  • Usage
    • Quickstart
    • Prerequisites
    • Add StackedSprite node
  • Credits
  • License

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:

  • Pixel art editor such as Aseprite using the Stacked Sprite Visualizer Plugin

  • Voxel editor like Goxel or MagicaVoxel. Both these tools have an export as png slices option that exports the voxel model into the expected format.

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 Godot addon to create fake 3D-like models using 2D sprites.

Resources

Readme
MIT license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.