B
Ben Zigdon
Guest
I have this code to create a timeline and add these 4 scripts to moments 10, 20, 30, 40.
Each script is just an instance create script. The problem is, the code basically disregards my timeline, and as soon as I run it it just immediately creates the 4 objects all at once. Even if I set timeline_running to false.
How do I fix this? Thanks
Code:
global.tl = timeline_add();
timeline_moment_add_script(global.tl,10,scr_leftsensor());
timeline_moment_add_script(global.tl,20,scr_upsensor());
timeline_moment_add_script(global.tl,30,scr_downsensor());
timeline_moment_add_script(global.tl,40,scr_rightsensor());
timeline_index = global.tl;
timeline_position = 0;
timeline_running = true;
How do I fix this? Thanks