Loop and create objects and set new position

0 favourites
  • 2 posts
From the Asset Store
SynthWave Loop Pack includes 68 seamless loops, founded on 11 original melodies.
  • Hi there,

    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.

    Logic:-

    <img src="https://dl.dropboxusercontent.com/u/74175978/logic.jpg" border="0" />

    <img src="https://dl.dropboxusercontent.com/u/74175978/leaderboard.jpg" border="0" />

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • 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...

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)