Abdur Olajuwon
Member
I'm trying to implement a lives system into a simple arcade platformer I am making and when I die, it doesn't subtract the number of lives I have.
All of this is in obj_lives
Here is the Create Event
And here is the Draw Event
And here is the code for when one of enemies collides with my main character
If there is something wrong or something I forgot to put in, just let me know because i know I am missing something.
All of this is in obj_lives
Here is the Create Event
Code:
///Score, Lives etc
global.life = 3
Code:
draw_set_halign(fa_left);
draw_set_valign(fa_middle);
draw_set_color(c_white);
draw_text(64,64,global.life);
Code:
if( global.life > 0){
global.life -= 1;
}
game_restart()