chrismaltby / gb-studio

A quick and easy to use drag and drop retro game creator for your favourite handheld video game system
https://www.gbstudio.dev
MIT License
8.57k stars 471 forks source link

[Request] Animated background tiles #48

Closed thomas-alrek closed 2 months ago

thomas-alrek commented 5 years ago

Would it be technical possible to support animated tiles on the background layers? E.g for creating animated water?

clsource commented 5 years ago

I currently do not have much knowledge, but I believe this can be achieved by using sprites instead of backgrounds.

1 - Background Layer: Water 2 - Sprite Layer : Animated ripple effect.

Lokathor commented 5 years ago

that could work for just a few waves, but there's only 40 object slots and not much time during hblank.

a better plan is probably to just change the tile data at whatever position in tile memory every few frames

HeyItsLollie commented 5 years ago

GB Studio would definitely need a proper tile editor (or support for an existing tilemap format, for example: Tiled Map Editor's TMX or JSON map formats) in order for animated background tiles to be feasible and user-friendly.

arathron commented 5 years ago

I was going to ask this same feature (animated tiles for background), like those used in zelda and pokemon. With sprites only very few elements can be shown.
I don't see why a tiled map editor would be needed, one can use an external one like Tiled. Can this feature please be added? If not, why not? Is it technically too difficult? Or is it just a matter of time? Thanks.

Ferk commented 3 years ago

Support for tmx or json files from Tiled as backgrounds would also make it more convenient, so you don't have to manually export them to PNG when changed. And when version controlling a GB project It would also make more sense to add the tmx/json files to git than the exported PNGs.