Alright thanks to the code I found in a scale 9 class I solved the problem now
So here’s the code I use now https://gist.github.com/connery0/0abd09b1d81774022502#file-tile-as Together with this image http://i.imgur.com/kZGSIsZ.png I can now make tiles of diferent sizes, just by inputing the height in the constructor http://puu.sh/brSYs/8e6ded771b.png
Hello, I’m prety new to flashpunk, and still am figuring out most of it’s functions but I’m a bit confused by the ways to make sprites, I got how you can make animations or use rectangles to divide a single image into diferent sprites.
But I want to make a isometric game and I thought up a way to make tile height scale when I need it.
The idea would be to have a top and bottom part of a sprite and then (one or more types) of repeating pieces to put in between to make it match the neede height example: http://i.imgur.com/7m25j1s.png
But I can’t figure out how to do this in flashpunk.
I know this probably has a easy solution, but I realy can’t find it. (also do you use the help category for this? or is that specific to development of new functions? )