Hi there, I'm making a simple car game.
The problem is, The checkpoints.. I got i right that if collide, then make invisible and passable and light up the next one.
like:
Code:
var checknumb = 1;
function nextcheck
{
if (EVENT_TYPE == EVENT_impact)
{
snd_play (lo_wav, 60, 0);
my.passable = on;
checknumb +=1;
wait(2);
}
}
action Checkpoint_1{
my.invisible = on;
my.enable_impact = ON;
my.EVENT = nextcheck;
while(1){if (checknumb == 1){my.invisible = off;}else{my.invisible = on;}wait(1);}
}
action Checkpoint_2{
my.invisible = on;
my.enable_impact = ON;
my.EVENT = nextcheck;
while(1){if (checknumb == 2){my.invisible = off;}else{my.invisible = on;}wait(1);}
}
And so on..
It's workin but it uses enable_impact, that makes it collide for a sec, and loose speed.
I tried with my.passable.on but then enable_impact doesent work.
Help..