08-06-2023, 07:55 AM
Hi, I have some questions about tile animations.
I am trying to make an ON/OFF switch gimmick like what you can find in Super Mario Maker 2 :
In my case, the state of the switch is stored in a Boolean variable.
The best way to achieve this effect I think is through animations. However, I can't find a way to control animations to achieve this effect.
The way I achieved the gimmick is by iterating through THE ENTIRE TILEMAP and change the index of the tiles I want to switch, so, very unoptimized.
Do you know how I can achieve that?
Thanks for your answer!
I am trying to make an ON/OFF switch gimmick like what you can find in Super Mario Maker 2 :
In my case, the state of the switch is stored in a Boolean variable.
The best way to achieve this effect I think is through animations. However, I can't find a way to control animations to achieve this effect.
The way I achieved the gimmick is by iterating through THE ENTIRE TILEMAP and change the index of the tiles I want to switch, so, very unoptimized.
Do you know how I can achieve that?
Thanks for your answer!