GameMaker Question about timeline usage

M

mingo

Guest
I did this:

1. create a object
2. create a room and place the object before into the room
3. create a script named it with src_test, typed code with show_debug_message("test")
4. add event the type of create for the object, and typed the flowing code

show_debug_message("bbbbb")
global.tl = timeline_add()
timeline_moment_add_script(global.tl, room_speed * 10, src_test)

While the output panel just show me "bbbbb" and never shows "test", even wait for over 30 seconds.
Could somebody tell me the problem with this case ?
 

FrostyCat

Redemption Seeker
Did you start the timeline you created? It won't run automatically just because you created it, you have to start it yourself.
Code:
timeline_index = global.tl;
timeline_position = 0;
timeline_running = true;
 
Top