HaxeFlixel / flixel

Free, cross-platform 2D game engine powered by Haxe and OpenFL
https://haxeflixel.com/
MIT License
1.99k stars 438 forks source link

Offsettable Clippable Tiled Images #1354

Closed JoeCreates closed 8 years ago

JoeCreates commented 10 years ago

I'd like to suggest the inclusion of an offsettable clippable tiled graphic, something like TiledImage in HaxePunk, that can have the graphic offset and scrolled, and also clipped.

sruloart commented 10 years ago

You mean something like Sébastien Bénard's ludum-dare tiles system? I can't find any related posts of his though: http://youtu.be/S4cttaxP7SM?t=7m46s

(you can see an example through his code for chipset0 here: http://deepnight.net/files/games/ld30-chipset0/source.zip).

He has a great workflow, he uses these tiles for everything, including animation.

Beeblerox commented 10 years ago

i think this is doable with the latest github version of openfl. i've added some features to Tilesheet class which make this feature possible

Beeblerox commented 8 years ago

Done here: https://github.com/HaxeFlixel/flixel-addons/commit/12a47f94fb2ba4789c375a167c7e9c1b2883ac10