SOLVED How to make a Sprite not cycle through frames but change a frame when something happens


I am making a tower defense game, and you are protecting a house. I have different frames in the house sprite for different levels of being broken by the enemy. I would like it to stay on the first frame, but if something happens, such as the health going down by 25, it will go to the next frame. How could I do that?
Make image_speed 0 which will stop the sprite from animating

Then use image image_index to change what frame you want. (image index starts at 0)

I don't know how you are handling health but if you do something similar to

if hp<=25