how would i make a boss fight have multiple stages? I want to make it so when it reaches half hp it changes its sprite but so far i have had no luck.
The code i have is
x = owner.x;
y = owner.y+30;
//location of gun when assigned to sprite