• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!

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