I'm currently stumped on an issue where i'm looping through some XML elements and dynamically creating new objects to put the data in. The problem i'm having is that i want to position each new object below the previous data entry.
At the moment it's putting the data on top of each other.
I understand what logic i need, i need a way of incrementing each data entry by X amount of pixels but from the most recent created object rather than the first object.
Unable to upload capx due to copyright, but here are some screenshots.
<img src="https://dl.dropboxusercontent.com/u/74175978/logic.jpg" border="0" />
<img src="https://dl.dropboxusercontent.com/u/74175978/leaderboard.jpg" border="0" />
Develop games in your browser. Powerful, performant & highly capable.
Simpliest way I see is to set up 2 local variables in the ForEach loop, and saving at the end of each iteration X and Y of the new Leader_Flags.
You can also pick the last created instance of LeaderFlags, but it won't be the best to manipulate...