This is very confusing. Passing an object doesn't seem to help me in my case. I really need to access every object in a layout. I couldn't find a way in Construct to do something to an object by name. I could store text values in an array, as names of items, which are actually sprite names
array = 'hat'
array = 'boots'
You can loop through an array with a foreach... but there doesn't seem to be a simple way to move an object name.
I figured I could make a simple plugin for my game which created an action that moved an element to X,Y simply based on sprites name.
Also I would have a corresponding expression... Then I could use the foreach to loop through the elements of the array in my layout then for each value call the expression move(element, 12, 12), say.. that would put the item of that element at 12 12. I could call the expression for each value in my array and move a whole array of items where ever I wanted.
I'm not that good with this kind of stuff, so figured if I could loop through each object, that would do it.
Other wise I was stuck with a ton of events, acting as a pseudo switch.