Coming soon - Get a detailed view of why an account is flagged as spam!
view details
3
[GMS1.4] Are the timelines functions bugged?
Post Body

This is about Gamemaker Studio 1.4.1763


Hey again. Right now I'm creating a top-down shoot-em-up game. I decided to use timelines to control my levels. The way that I intended to set it up is that groups of enemies are spawned with a period of time in between. Easy task for a timeline, right?

However, I wanted to use code to create the timelines because that way I could easily control the steps. For example, I want to create enemies after the first 5 seconds, so I used room_speed*5 as the step count.

Anyway, I think that creating my own timelines using code actually has a bug. I make and initialize the timeline in the create event of my controller object, but every timeline_moment is executed immediately (in the first step) instead of it functioning properly.

Controller Create Event:

tm_level1 = timeline_add();
//Add a script to the timeline at the given step.
timeline_moment_add_script(tm_level1,room_speed*5,
    attackgroup_1() 
);
timeline_moment_add_script(tm_level1,room_speed*10,
    attackgroup_2()
);

timeline_index = tm_level1;
timeline_position = 0;
timeline_loop = false;
timeline_running = true;

After searching the subreddit, I found multiple posts that mention the same problem.
https://www.reddit.com/r/gamemaker/comments/3ckdor/quick_question_about_timelines/
https://www.reddit.com/r/gamemaker/comments/4fe652/help_coding_timeline/

Is my only solution here to make my own step count? Such as this user outlines?

Thanks for all the help.

Author
Account Strength
100%
Account Age
12 years
Verified Email
Yes
Verified Flair
No
Total Karma
86,330
Link Karma
2,773
Comment Karma
83,557
Profile updated: 5 days ago
Posts updated: 8 months ago
. . . . . . . . paku paku

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
7 years ago