A downloadable script

Download NowName your own price

On GitHub

Generate animations from sprite sheets!

This script includes a function (spritesheet_animation) that creates animations from given sprite sheet files.

Example

spritesheet_animation("images/explosion.png", 8, 6)

Download

Download NowName your own price

Click download now to get access to the following files:

Download from GitHub
External

Comments

Log in with itch.io to leave a comment.

(-1)

Code is a lil deprecated with new renpy versions.

Replace

hold_last_frame = bool(kwargs["hold_last_frame"]) if "hold_last_frame" in kwargs else False with renpy.open_file(image_path) as handle: full_width, full_height = __get_image_size(handle) sprite_width = int(full_width / x_sprite_count)

With

hold_last_frame = bool(kwargs["hold_last_frame"]) if "hold_last_frame" in kwargs else False full_width, full_height = renpy.image_size(image_path) sprite_width = int(full_width / x_sprite_count)