This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

MrCohen
MrCohen presents ...

2018/5/28

Spritefoot

This is the latest build of my Sprite Slicer. It allows you to import a PNG, set a tile size, and then select tiles either by specifying values or dragging your mouse. Exports into sequentially numbered files with a user-provided name, for easy import into a GreenfootImage array in a Greenfoot project, allowing you to more easily create animated Actors.

I made this becauase Greenfoot doesn't deal well with spritesheets and I wanted to give my students an easy way to use spritesheets to create animated actors. When this project is complete, I will publish it as a teacher resource.

This is a work in progress, and your feedback is welcome.

This scenario will not work on the Gallery due to it being written for 3.0.4, not 3.1.0. The final version will be available for 3.1.0. In the mean time, if you want to make it work in 3.1, just download it and remove the "import java.awt.Color" import statement in each of the classes and it should work in 3.1. It has been tested to work in versions as far back as 2.3.0

546 views / 4 in the last 7 days

Tags: mouse with-source image sprite manipulation bufferedimage awt

open in greenfoot

There is no HTML 5 translation of this scenario available.
View legacy version (requires Java plugin)

This scenarios uses Java features that are not available for use after conversion to HTML 5. Please try the legacy version, which requires the Java plugin to be installed.

A new version of this scenario was uploaded on 2018-05-29 12:33:09 UTC Fixes to drag selection in Auto mode.
A new version of this scenario was uploaded on 2018-05-29 16:30:02 UTC Bug fixes - Auto mode should work better now
A new version of this scenario was uploaded on 2018-05-31 16:29:37 UTC Now works for Spritesheets shorter than the button area's height.
A new version of this scenario was uploaded on 2018-05-31 16:44:14 UTC Now works for Spritesheets shorter than the button area's height.
A new version of this scenario was uploaded on 2018-05-31 19:14:07 UTC Added the ability to set an Offset value, so this should now work with more irregular spritesheets.
A new version of this scenario was uploaded on 2018-11-19 17:13:34 UTC Bug fixes - Using the padding feature should no longer cause output to be improperly positioned in the frame.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.