System on load troubles

For questions about using Classic.

Post » Fri Feb 25, 2011 5:16 pm

First of all, hi. Well I'm new on these here forums, so a obligatory hi is the first thing one does... Hmm, this is my second post though :roll:


Anyways, after having a look at search and the wiki I was not able to find the solution to my troubles.

I've been working on Construct a bit and have my first idea up and running. However one thing I wasn't able to get working is the system on load event. I need it to get the initial state of the game going. Now I'm using a workaround of checking opacity of active objects, but that is not what I want to use in the final draft. All of it is quite placeholder and this opacity change was just a nice indicator to use for now.

So yeah, with that out of the way. Where should this system on load actually occur. Currently I have it set up in a second even sheet, which I include in the main layout/even sheet. Isn't it possible to use system on load in an included even sheet?


Note:

It seems I posted it in the wrong forum initially :lol:
B
6
S
3
G
1
Posts: 76
Reputation: 1,002

Post » Fri Feb 25, 2011 6:02 pm

[quote="Kouji San":2wfsejd2]I need it to get the initial state of the game going. [/quote:2wfsejd2]
On load does not trigger at game start, but after having loaded a save file. If that is what you want, you should be able to use it by doing a Load from disk (or Quickload) followed by on load.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242

Post » Fri Feb 25, 2011 6:19 pm

[quote="tulamide":3kckf1we][quote="Kouji San":3kckf1we]I need it to get the initial state of the game going. [/quote:3kckf1we]
On load does not trigger at game start, but after having loaded a save file. If that is what you want, you should be able to use it by doing a Load from disk (or Quickload) followed by on load.[/quote:3kckf1we]
Aha, I see where I went wrong with this. I was comparing it to Flash's on load event. I need to use Start of layout instead to init things (on load :P) and on load is and external loader...


Thanks for that piece of info!
B
6
S
3
G
1
Posts: 76
Reputation: 1,002

Post » Fri Feb 25, 2011 7:09 pm

I wasn't sure if you were looking for "Start of layout" or if there are issues with "on load". That's why my answer was cautious ;)

Yes, you're right, "Start of layout" is what you are looking for. Using it makes sure all expressions and subevents will be executed at the very first tick of the layout.

...And welcome to the forums :D
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 6 guests