{"id":57,"date":"2015-08-04T05:09:49","date_gmt":"2015-08-04T05:09:49","guid":{"rendered":"http:\/\/www.redcavestudios.com\/devblog\/?p=57"},"modified":"2015-08-04T05:09:49","modified_gmt":"2015-08-04T05:09:49","slug":"gamemaker-timelines","status":"publish","type":"post","link":"http:\/\/www.redcavestudios.com\/devblog\/?p=57","title":{"rendered":"Gamemaker Timelines"},"content":{"rendered":"<p>Took me a bit to find out how to use multiple timelines in game maker.\u00a0 Still didn&#8217;t find anything obvious.<\/p>\n<p>Create a global time line variable for the second.\u00a0 Before using it, make sure it is a valid timeline to use at some point.<\/p>\n<p>if (global.timeline2==noone)<br \/>\n{<br \/>\nglobal.timeline2 = timeline_add();<br \/>\n}<\/p>\n<p>&nbsp;<\/p>\n<p>Use the with clause to utilize the secondary timeline.\u00a0 This will let you run a second time line at the same time.<\/p>\n<p>with(global.timeline2)<br \/>\n{<br \/>\ntimeline_index=[NAME OF TIMELINE];<br \/>\ntimeline_position=0;<br \/>\ntimeline_loop=false;<br \/>\ntimeline_running=true;<br \/>\n}<\/p>\n<p>I am using it for incoming shmup objects on paths.<\/p>\n<p>&nbsp;<\/p>\n<p>Have fun.<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Took me a bit to find out how to use multiple timelines in game maker.\u00a0 Still didn&#8217;t find anything obvious. Create a global time line variable for the second.\u00a0 Before using it, make sure it is a valid timeline to use at some point. if (global.timeline2==noone) { global.timeline2 = timeline_add(); } &nbsp; Use the with [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-57","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=\/wp\/v2\/posts\/57","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=57"}],"version-history":[{"count":1,"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions"}],"predecessor-version":[{"id":58,"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=\/wp\/v2\/posts\/57\/revisions\/58"}],"wp:attachment":[{"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=57"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=57"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.redcavestudios.com\/devblog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=57"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}