Instead of defining multiple panels and using if statements for each of them you can just use a BMAP array and then iterate over those instead:

frame = floor(total_ticks*0.5);
frame %= 8;
my_panel.bmap = bmp_animation[frame];

The (bmp_animation) BMAP* array needs to be filled at game start.


"Falls das Resultat nicht einfach nur dermassen gut aussieht, sollten Sie nochmal von vorn anfangen..." - Manual

Check out my new game: Pogostuck: Rage With Your Friends