Log In  


Cart #48231 | 2018-01-16 | Code ▽ | Embed ▽ | License: CC4-BY-NC-SA
9


This is an alternate method of doing tile animations. This method uses only a single tile per animation, making it easier to pack in a lot of animated tiles into a single tile. It's not the best way of doing this. It's just a way of doing this. :)

Basically it just cycles through the colors in the tile according to the order you want them to appear, and changes them to a new color, also set by you in the code. The upshot is you can fit entire simple animations into a single tile.

(BTW, I'm not claiming credit for this method... it's one of those things that I'm sure a thousand devs before me have figured out before, and probably 10x more efficient ways than I cranked out tonight.) :D

9


This is nice, I can imagine it being really good for animated ui icons etc.


Nice!

You can do a decent 7-segment numeric display, clock radio style, with the same method.


This is how I did the broken mirror portals on my Ghostbusters game. Worked incredibly well and saved on a lot of sprite space.

https://www.lexaloffle.com/bbs/?pid=44296&tid=29948


Really nice and not too many tokens. Love the though of it being used for impact animations such as flashes or explosions! Will investigate...


This is very cool. It messes with my head a bit, but oh so cool.

Nice work. Thanks for sharing.



[Please log in to post a comment]