View Issue Details

IDProjectCategoryView StatusLast Update
0015311Runner[All Projects] Time LinesPublic2017-03-02 15:33
Reporterraimis001Assigned ToFritz 
PriorityMediumSeverityC - GeneralReproducibility100%
Status ClosedResolutionFixed 
Platform OS OS Version
Product Version 
Target VersionFixed in Version 
Summary0015311: Time Lines: Timeline add moment script
DescriptionI used code for add new timeline moment from help:

object create event:

globalvar tl; = timeline_add();

var i = room_speed * 5;
timeline_moment_add_script(, i, sEvent);
i += room_speed * 5;

timeline_moment_add_script(,i, sEventEnd);

timeline_index =;
timeline_running = true;

script sEvent:
show_debug_message("Event script " + string(timeline_position));
instance_create(irandom(room_width), irandom(room_height), object1);

script sEventEnd:
show_debug_message("END event script " + string(timeline_position));

after execute game all 4 events call in same time, objects create in same time and get debug message:
Event script 151
Event script 151
END event script 151
Event script 151
Steps To Reproduce

Looks like the timeline_moment_add_script function is not work correctly.
Doesn't matter what value you give for the step event all events in the timeline will trigger at the same time.
Additional InformationOriginal helpdesk ticket:
1.4 Found In1.2.1347
2.x Runtime Found In
2.x Runtime Verified In


Neil Wicker

2014-07-11 15:33

Updater   ~0030699

Reproduced in 1.99.170 - the added scripts are executed in the wrong order and all at once regardless of what moment they were set to. I've added a new sample to make it more clear. Assigned.

Neil Wicker

2014-07-11 15:33


timeLineTest2.gmz (904,952 bytes)

Ross Manthorp

2017-03-02 15:33

Adminstrator   ~0051904

Verified. Closed.