Z
zimice15
Guest
Hi,
I am new to gamemaker .I am making a remake of Asteroids .I have problem with lives. I want lives and when player has 100 points add another live but stop after one added and after player reachs 200 points add another live.Here is a code:
var LoopCount
for (LoopCount = 0; LoopCount < global.life; LoopCount++)
{
draw_sprite(spr_playerlive, 0, 36 * (LoopCount + 1) , 76);
}
if(global.points >100){
global.life += 1;
}
I am new to gamemaker .I am making a remake of Asteroids .I have problem with lives. I want lives and when player has 100 points add another live but stop after one added and after player reachs 200 points add another live.Here is a code:
var LoopCount
for (LoopCount = 0; LoopCount < global.life; LoopCount++)
{
draw_sprite(spr_playerlive, 0, 36 * (LoopCount + 1) , 76);
}
if(global.points >100){
global.life += 1;
}