Fabseven
Member
Hello there,
I have got trouble with timeline_moment_add_script,
I created an empty timeline named timeline0
And with this code :
I am trying to make my game pop monster each 100 step but instead all the 10 monsters a created at step 0.
Why ?!
It works when i create a timeline with the editor but i want to create one with code.
I have got trouble with timeline_moment_add_script,
I created an empty timeline named timeline0
And with this code :
Code:
var step = 0
repeat(10)
{
timeline_moment_add_script(timeline0,step,system_popmonster())
step += 100
}
timeline_index = timeline0
timeline_running = true
timeline_speed = 1
timeline_position = 0
Code:
script system_popmonster()
instance_create(0,0, obj_monster)
It works when i create a timeline with the editor but i want to create one with code.