Zathan wrote:I would like to know what is more interesting...
Put the objects that will appear only with the 'create object' action in a separated layout, or just put outside the layout that it will appear?
The best practice would be is to put everything that the Layout needs including the objects that will be created using "System ->Create Object(X,Y)". And on start of layout, if the object is not needed yet , destroy it.
Because if you don't have the object in the layout and create it using "System ->Create Object(X,Y)" it will make a laggy pause because the object isn't preloaded.
Only the objects present in the layout during editing will be preloaded. It is still okay if you put it outside the Layout White Paper as long it is on the Layout Page.
Note: Do not put your objects in a separate layout that isn't run during gameplay.
(Example of a bad practice!!! is to make a Layout where the game happens and make a separate layout for storage of the objects that will be created by "System ->Create Object(X,Y)" for the reason of not making the Main Game Layout look messy. ) - Wrong! The objects will not be preloaded and plus a Layout that is not used and made a storage for objects makes it worse.
For more info, read Ashley's Optimization tips below:
Ashley's posts: https://www.scirra.com/blog/83/optimisa ... -your-time https://www.scirra.com/tutorials/298/pe ... bile-games