Coppercube Spritesheet Animator


A CopperCube extension that allows you to use 2D Spritesheets in your app or game.  This is best suited for 2D games and works with all sprite sheets that can be cut on the basis of rows and columns.

This shader action will allow you to use a single image for your character or object and will allow you to animate the character using the sprites from that single image, just like any other sprite sheet animation system.

You looked at the sprite sheet above of the green Dino up there, here is the result of using that sprite sheet with this shader action. This is how the Dino will animate.

You can specify the total number of columns and rows in your sprite sheet and the extension will automatically prepare the animation for you from that info. It also allows you to specify the Start Frame and End Frame for the animation. meaning you can choose from which row or column (tile) the animation should start playing and then end on which column.

This extension might also increase the game performance, as it will be using only a single texture so that the game won't use multiple load texture commands and not use multiple render calls, so the less the render calls for the textures the faster your game performance will be.

Check out the demonstration video on the right on how to use the extension and how it will work.

Usage:-

Attach this action to any behavior and fill the parameters, Select the Affecting_node (the node on which the sprite sheet texture is applied), Set the base_material_type, and a number of rows and columns according to the sprite sheet. For example, if your sprite sheet has 12 columns and 8 rows, fill them in the rows and columns field, specify the AinmationTime( it is the time one frame takes to switch to another frame ) then specify the StartFrame and EndFrame for your animation, it is the number of tiles (sprite) through which you want the animation to get started and the number(index) of the sprite at which you want the animation to end.

You can also use some variables to control the extension settings during the gameplay. You can use variables to set startframe and endframe and animationtime (speed). To use the variables, simply use the inbuilt set or change a variable action and then use the variable name that will be in this format.

nodename.startframe
nodename.endframe
nodename.animationtime

here nodename is the name of the node on which the sprite sheet texture is applied to (affecting node supplied in the action parameter).

that's all hope you guys find this extension helpful. 

For more CopperCube extensions, shaders and plugins visit my website https://neophyte.cf

Files

ccb_shader_action_spritesheet_animator.zip 4 kB
Dec 14, 2021

Get 2D Spritesheet Animation (CopperCube extension) v1.4

Download NowName your own price

Leave a comment

Log in with itch.io to leave a comment.