Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
Our educational partners
Free education resources to use in the classroom
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
I am wondering if there is any limitation on using the "On start of layout" trigger. Does it depend on the device? Do they trigger in the event sheet order (top On start of layout first and subsequent ones down the path?)
Is it bad practice to use more than one? I would expect so, as from c# programming for example having more than one Window Load event is not a good idea. However I am interested to know if there would be any problems as my project would be much better organized if I could use more of said triggers.
Thank you for your time reading this
as stupid i may sound, it does not matter how many "on start of layout" you have in your event sheet. but the reading from top to bottom does matter so if u have 10 or 20 on start of layout make sure the 1st line doesn't depend on the 2nd or 20th line "of start of layout" im always using 2 or 3 triggers of the same type but im always adding a extra condition to most of them, so it can be recognized as a different process basically its a preloading action. i hope it helped u, and hope im right about what i encountered so far.
Thanks for the info —
I shall try a few tests and come back here with the results.
I have tested an event sheet with 500 On start of layout that were adding numbers. The conclusion was that all the events triggered correctly but I cannot say in which order.
Develop games in your browser. Powerful, performant & highly capable.
I think for the triggers, that:
They trigger first in the included sheets, not the main one, from the top included one to the bottom included one, then the main one
In each event sheet they trigger from top to bottom
If my memory serves me correctly