Family and Containers problem

Get help using Construct 2

Post » Fri Jan 24, 2014 7:50 pm

Hi everybody

Ok here is my problem: I have two families: The first one contains objects representing ammo cases, the second one are off-screen indicators. each ammo case has a container composed of one the objects from the Indicators family (off screen indicators), then, and just to be clear, each ammo case contains (or is contained) an indicator. Ok, so far so good, now the real problem is that to be able to position an off-screen indicator I use a for loop that iterates through all the ammo cases (AmmoCase family is being used in the loop) currencly on screen, it uses some simple math to ensure that the indicators only appear on the screen as long as the ammo case that it "indicates" is not currently being shown up, the actual problem here is that if I have say 4 ammo cases all the 4 indicators are being positioned relative to the position of 1 of the 4 ammo cases, I suppose it has something to do with the loop or something... any help would be appreciated. Thanks
B
10
S
3
Posts: 75
Reputation: 864

Post » Fri Jan 24, 2014 8:23 pm

Ok no worries, problem solved :)
B
10
S
3
Posts: 75
Reputation: 864


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 20 guests