• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

SOLVED The game not work

ELUCIO

Member
(My english is bad) Hello, im programming the healt of my player and i found an error or a strange bug i dont know
GML:
///Si vida llega a 0///

if VidaPersonaje = 0  {
room_restart()
}
the game run, but the bullets remove -75 of the health
Code:
VidaPersonaje = 100;
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
Code:
///Si vida llega a 0///

if VidaPersonaje > 0 {
room_restart()
}
and the game "run" but the window dont appears, so i change the value for -1 and the same result
 
Top