D
dawson2223
Guest
Hey quick question,
I'm trying to change the index of a UI sprite. I put it in the draw event, and tried changing it in the step event but I'm not sure if GameMaker allows you to change sprites like this.
I'm just trying to switch the sprite's index. tried using sprite_index and that didn't work either. How do I fix this?
Thanks
I'm trying to change the index of a UI sprite. I put it in the draw event, and tried changing it in the step event but I'm not sure if GameMaker allows you to change sprites like this.
Code:
//Draw GUI Event
draw_sprite(spr_slayerlevel,0,58,52);
Code:
// Step Event
with (spr_slayerlevel) if (global.Round = 2){
image_index = 1;
}
I'm just trying to switch the sprite's index. tried using sprite_index and that didn't work either. How do I fix this?
Thanks