Action Scheduling

Discussion and feedback on Construct 2

Post » Fri Jun 03, 2016 8:06 pm

Why can't construct support scheduling events and actions? Example I add a system action "Move to end of scheduling" and the actions proceeding it do not fire until all other events and actions have completed for the current frame.
B
13
S
4
Posts: 61
Reputation: 1,028

Post » Fri Jun 03, 2016 8:10 pm

Sounds a lot like Wait 0.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,852

Post » Fri Jun 03, 2016 8:34 pm

It supports audio scheduling, so I suppose it could be done (by Scirra), but Wait 0 or put your event at the bottom would achieve this for now.
B
103
S
38
G
19
Posts: 962
Reputation: 17,996

Post » Fri Jun 03, 2016 8:50 pm

Wait for signal.
Image ImageImage
B
169
S
50
G
169
Posts: 8,285
Reputation: 108,214

Post » Sat Jun 04, 2016 1:01 am

You could use the func object, or just place your events at the end of the event sheet; C2 reads events from top to bottom so events on every tick will be done in order from top to bottom
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Sat Jun 04, 2016 1:12 am

Functions are triggers.
They are run before the next event.
Image ImageImage
B
169
S
50
G
169
Posts: 8,285
Reputation: 108,214

Post » Sat Jun 04, 2016 5:27 am

Wait 0. Bam. Thank you. Now all I need is a "purge" tool. Get rid of all the variables and objects that don't get used or called. Woooo I suck at organizing.
B
13
S
4
Posts: 61
Reputation: 1,028

Post » Sat Jun 04, 2016 7:53 am

powerwaffle wrote:Wait 0. Bam. Thank you. Now all I need is a "purge" tool. Get rid of all the variables and objects that don't get used or called. Woooo I suck at organizing.


Can't help you with objects (all non-global objects in previous layouts get removed when you go to new layout anyway so the point is moot) but for variables, consider using several dictionaries instead of global variables.
Advantages:
1. It will be far easier to transfer events between projects.
2. If you keep track of what each key in the dictionaries do using excel and such, it is extremely easy to organize variables and ensure no redundancies (which is important when you intend to improve and update your game). (Actually you should do this documentation anyway for global variables if you are using them since having all of that documented in one page is far better than having many of them in different event sheets, confusing you over what do what when you plan to improve your game after several months.)
3. Using different dictionaries to serve as categories, you can reset values as you wish, which is important for certain games.
4. Your event sheets will look really nice and compact without global variables cluttering the top.
B
36
S
18
G
11
Posts: 248
Reputation: 8,694


Return to Construct 2 General

Who is online

Users browsing this forum: jobel, Yahoo [Bot] and 2 guests