Reply to Re: Reviving a sprite
If you don't have an account, just leave the password field blank.
I'll provide the full code, although I have tried just stripping it all down to the core which is refilling its HP and that doesn't work either as I said.
The loop is found in the main() procedure.
// Revive once if upgrade available int &stat; if (sp_custom("revived", ¤t_sprite, -1) == 0) { if (&dgupgrade >= 8) { sp_custom("revived", ¤t_sprite, 1) external("helper", "sparkles", ¤t_sprite); playsound(22, 22050, 0, 0, 0); if (&dgupgrade == 0) { &stat = &lifemax; &stat / 4; } if (&dgupgrade >= 1) { &stat = &lifemax; &stat / 3; } if (&dgupgrade >= 5) { &stat = &lifemax; &stat / 2; } sp_hitpoints(¤t_sprite, &stat); goto loop; } }
The loop is found in the main() procedure.