W
Wild_West
Guest
I added some changes to my player parent code to give him invincibility and ever since I've been getting problems that I shouldn't be.
My warp object isn't changing rooms when I collide with it, and my rooms aren't restarting when I die. They just keep repeating the messages they're supposed to show.
And I haven't touched the code that says to do so at all since the last time it was working before I made the adjustments for invincibility.
//allow player death
if (west_stats.hp <= 0) and not instance_exists(fayth_object)
{
show_message("Game Over..");
room_persistent = false;
room_restart();
}
if (west_stats.hp <= 0) and instance_exists(fayth_object) and (fayth_object.checkpoint_reached == false)
{
show_message("Game Over..");
room_persistent = false;
room_restart();
}
///warp in collision with player
if(room != the_6_bonuses_room){ room_persistent = false; }
room_goto(map_select_room);
My warp object isn't changing rooms when I collide with it, and my rooms aren't restarting when I die. They just keep repeating the messages they're supposed to show.
And I haven't touched the code that says to do so at all since the last time it was working before I made the adjustments for invincibility.
//allow player death
if (west_stats.hp <= 0) and not instance_exists(fayth_object)
{
show_message("Game Over..");
room_persistent = false;
room_restart();
}
if (west_stats.hp <= 0) and instance_exists(fayth_object) and (fayth_object.checkpoint_reached == false)
{
show_message("Game Over..");
room_persistent = false;
room_restart();
}
///warp in collision with player
if(room != the_6_bonuses_room){ room_persistent = false; }
room_goto(map_select_room);
Last edited by a moderator: