If you create a project and import 1 sprite, e.g. crater.
If you have two layouts, e.g. layout 1 for portrait and layout 2 for landscape.
Both layouts have the same event sheet (as they are the same game, just different object positions and sizes.)
We copy the objects from layout 1 to layout 2, and all is good.
Well not quite.
For some reason I dont yet understand, when I do System->create object->crater in layout 1s event sheet, it uses the (resized) copied crater object from layout 2, not the existing one from layout 1.
This goes against what people are telling me about the scope of ojects in C2 - that they are local to the layout.
Here is a capx which demonstrates the issue - the created crater should be small and square, not the stretched one from layout 2.
https://www.dropbox.com/s/8s65a3rac3q5htn/objectscopeissue.capx
Its just a project with 2 layouts. The crater object was dragged to layout 1 to create a sprite ouside the window area. then it was copied (cut and copy) to layout 2, and resized. Then in layout 1, when we create a crater object, it ignores the crater object in its local layout, and grabs the one from layout 2.
The issue is that without the ability to copy & resize objects and refer to the correct one in a single event sheet, I cant think of a way to implement portrait and landscape versions of the same game (a requirement for mobile html5 games), without duplicating all the code and renaming the corresponding sprites to get local versions. Any ideas?