GML SOLVED - DrawGUI(), changing sprite sub_images?

Amon

Member
Code:
    for ( xi = 0; xi < 22; xi++ )
    {
        draw_sprite(spr_light, 0, x + xi * 32, y);  
    }
The above code is in my DrawGUI event. Rather than use 22 draw_sprites I put it in a for-loop.

How would I approach changing the subimage of each sprite or just one sprite after a timer event hits 0?

Using objects, this was easy.

EDIT///////////////

Solved the issue b y using an array and the get set array commands. :)
 
Last edited:
Top