How do I get this array to work in my project

Get help using Construct 2

Post » Sun May 15, 2016 7:10 pm

So I made a simulation of trees growing based on a set of randomized DNA. Each strand codes for a branch (it's angle, energy needed to grow, etc...). Each branch receives its strand from the array that contains the DNA of the original seed. Now it works fine with a single seed but once there are 2 or more trees growing some branches won't receive their DNA and some will but just don't grow. Any ideas on how I can fix this?

Here's the capx file: https://www.dropbox.com/s/x7ioml83p0lqs ... .capx?dl=0
B
22
S
8
Posts: 203
Reputation: 2,059

Post » Tue May 17, 2016 3:04 pm

I was very intrigued with what you had build there and I hope that the following adaption will help you on your way :)

I added a for each loop on event 14 and combined the two events following into that, mixed that up with a correct version of picking the required objects by evaluation.
Also added a picking action on event 10 for correct energy updates.

I see there is still room for improvement, but it's your project and this should help you greatly already.

https://dl.dropboxusercontent.com/u/713 ... ntEvo.capx
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Tue May 17, 2016 7:22 pm

Thank you so much!
B
22
S
8
Posts: 203
Reputation: 2,059


Return to How do I....?

Who is online

Users browsing this forum: 25games, Artcadev and 24 guests