Hi everyone,
I'm new here, but I'm in love with this tool.
I'm having trouble, though, with finding things in the manual, because some of the terminology is overloaded.
For instance, I'm looking for the order that event callbacks happen in the core javascript framework that is used when we export a project called c2runtime.js.
The "events" as defined by Construct2 on the "System" plugin are
On loading finished
On end of layout
On start of layout
On canvas snapshot
I've hooked each one, and occasionally, it appears that "on start of layout" isn't firing in a timely manner, even though I certainly would expect it to. We may be "loading resources" and the engine is bogged down, but I don't see a "On start of loading", or an "On start of game". Scirra guys, this might be handy...
The Browser plugin has a few more that I've hooked
On resized
On went online
On went offline
On menu button
On search button
On update ready
On suspended
On resumed
and these seem to be fine, but none of them seem to happen as a 'start-up' event.
I thought I was golden with System."On start of layout", but sometimes it's several seconds before it actually fires. During this time, I see the layout with all the sprites on it, in their messy positions where I placed them while creating the layout.
What I'm hoping do to is execute a chunk of stuff PRIOR to the first frame of the layout being drawn on the screen, and only do it once. I want to do some interrogation of the actual window size, and hide/move some sprites and such out of the viewport before the user can see them, and I want to delete ones that don't apply. I have different sized buttons and such for devices with small screens and larger stuff for devices with bigger screens.
Can anyone offer any hints?
And, for the guys at Scirra, this really is an excellent product. You should be proud of yourselves.
-john