GML Spawning With Timelines

yvodlyn

Member
Hello everyone,

I'm actually making a spawning system with timelines. I thought it was easy but I was wrong. I wonder if anyone has an idea to fix the code or can offer me an advanced wave-spawning system code. The first condition in my code works but the second one never executes.
Here the code.

///spawning
if (instance_exists(o_player)){
if (point > 10)
{
timeline_index = tl_1;
timeline_running = true;
timeline_position = 0;
timeline_loop = true;
}
if (point >= 20){
timeline_index = tl_2;
timeline_running = true;
timeline_position = 0;
timeline_loop = true;
}
}
 
Top