(My english is bad) Hello, im programming the healt of my player and i found an error or a strange bug i dont know
the game run, but the bullets remove -75 of the health
this is the healt of my player
and the enemies without gun remove -50, also, if the life are -25 the room dont restart
so i wrote
and the game "run" but the window dont appears, so i change the value for -1 and the same result
GML:
///Si vida llega a 0///
if VidaPersonaje = 0 {
room_restart()
}
Code:
VidaPersonaje = 100;
and the enemies without gun remove -50, also, if the life are -25 the room dont restart
so i wrote
Code:
///Si vida llega a 0///
if VidaPersonaje > 0 {
room_restart()
}