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

Report as inappropriate.

Game/maniac
Game/maniac presents ...

2013/5/26

sprite sheet slicer

You can use the class I made to take sprites from sprite sheets and put them in to your game.

Also has a blank sprite sheet you can use, each cell on it is 10X10 pixels.
Plus the class also has a method which is like getOneIntersectingObject() but instead of just checking for an object intersecting it, it checks if the object is intersecting the coloured part of the image.

9950 views / 38 in the last 7 days

6 votes | 0 in the last 7 days

Tags: with-source

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.

Entity1037Entity1037

2013/6/12

I wonder if it would be easier to use giff images...? You can make the image itself determine weather to loop or not, so it would be great for making animations of all kinds.
Game/maniacGame/maniac

2013/6/13

The point is that you could use multiple images from one image, this is used in games which have lots of images so it os easier to find them and access them
Entity1037Entity1037

2013/6/13

Ah, OK then that makes sense. Hey, do you know what the import for animated gif images is? Because I don't know it, and I can't find it anywhere on the internet.
I am pretty sure you can't use gif imges in Greenfoot.
Game/maniacGame/maniac

2013/8/5

they work in greenfoot but not on the site
Game/maniacGame/maniac

2013/8/5

though you need to import a class first
Game/maniacGame/maniac

2013/8/5

@entity you have to go to edit then import in the greenfoot application
Entity1037Entity1037

2013/10/1

You know, if you were to get the absolute value of bottomLeftX-topLeftX, it would give you exactly the correct width? The same goes for the Y values to! Don't you think that would of been easier for us? :P
Entity1037Entity1037

2013/10/1

LOL I mean bottomRightX-topLeftX. (whoops)
Game/maniacGame/maniac

2013/10/1

I didn't know about what the absolute function did when I made this. I may add that later on, I am working on another project at the moment.

See all comments

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

Who likes this?

3r1kMort softwhizjx 8bitcarrotjuice Entity1037 Gargol Tasharoo