B
BlakeNBitz
Guest
Hey y'all, I'm pretty new to game maker and programming so apologies in advance..
I want to have my obj_Exit, to run a timeline upon collision with obj_Player. I set up a timeline that would wait say... 120 steps then switch to next level. Is my code wrong? Is there an easier way to do this with alarms?
Here's what i did:
obj_Exit:
create event
timeline_index = tl_Endlvlanimation;
timeline_position = 0;
timeline_running = false;
collision event w/ obj_Player
timeline_running = true;
my timeline (if info's needed)
tl_Endlvlanimation
moments/actions
step 0
//wait
step 120
room_next(rm_CS2);
Thanks for any help you can give
I want to have my obj_Exit, to run a timeline upon collision with obj_Player. I set up a timeline that would wait say... 120 steps then switch to next level. Is my code wrong? Is there an easier way to do this with alarms?
Here's what i did:
obj_Exit:
create event
timeline_index = tl_Endlvlanimation;
timeline_position = 0;
timeline_running = false;
collision event w/ obj_Player
timeline_running = true;
my timeline (if info's needed)
tl_Endlvlanimation
moments/actions
step 0
//wait
step 120
room_next(rm_CS2);
Thanks for any help you can give