Log In  

Cart [#48231#] | Code | 2018-01-16 | License: CC4-BY-NC-SA | Embed
7

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

P#48232 2018-01-15 23:52 ( Edited 2018-01-18 14:30)

:: elneil

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

P#48233 2018-01-16 04:05 ( Edited 2018-01-16 09:05)
:: Felice

Nice!

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

P#48235 2018-01-16 05:43 ( Edited 2018-01-16 10:43)

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

P#48252 2018-01-16 21:11 ( Edited 2018-01-17 02:11)

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

P#48311 2018-01-18 09:27 ( Edited 2018-01-18 14:27)

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

Nice work. Thanks for sharing.

P#48313 2018-01-18 09:30 ( Edited 2018-01-18 14:30)

[Please log in to post a comment]

About | Contact | Updates | Terms of Use
Follow Lexaloffle:        
Generated 2019-09-20 00:15 | 0.016s | 4194k | Q:30