You need to include loopindex as expression in object creation whether it is on X or Y. And make sure there is an instance of family in layout or remove destroy action. Also add another condition 'Family.PickedCount < 3'
My attempt, not very clean though:
drive.google.com/file/d/1NQWBtVzhCaVIa5cpE0r-djpOEduG2WEm/view
Then you should check whether previous family member already exist like this: construct.net/out
You already got the logic that stated each line connected to only 2 nodes. Work from there we can perform flood fill operation to find '5' through the network and Mark the path.
Sure you can set the iteration using lerp (layoutScale, 0.5, dt) for example.
An example: dropbox.com/s/4ahybqe3t0k758f/biters.c3p
Here I simplify everything by using container, pin behavior & removing unnecessary instance variable:
drive.google.com/file/d/1nIxvtBbRGfGdkTuKb_O4QXdHCWI3EjuT/view
symbol "%" means modulo operation . So if you have 6 instances which start with iid 0 as first instance and iid 5 as last instance. In your case the iid is equal to loopindex due to loop condition "For each". Took an example from the iid or loopindex as an input to do modulo operation: 3%3 will return 0 as remainder and 5%3 will return 2 as remainder. So basically since I know they are equal pair for the object instances and want to assign them to the same instance variable value as input, I put modulo operation to quickly assign the value. Aside from that I recommend to use pin behavior to keep track of text position instead of using Every tick.
Use LayoutScale or LayerScale. Value of 1 is origin size, 0.5 would be half (zoom-out), 2 would be double the size (zoom-in) and so on.
Have a look to your modified file: drive.google.com/file/d/1rpj5V16O0qtfeZ7AxeuTn5A9CSVXJuN2/view
Develop games in your browser. Powerful, performant & highly capable.
lionz Ah you can do like this for that matter:
*edit[add link] : drive.google.com/file/d/1VuPjyTksJjsGmytVuXEy6taxbw3s16Cl/view
Recently find out that it is possible loop through family by create local variable and iterate by ObjectTypeName.
*https://www.dropbox.com/scl/fi/7kxctgsdlp8nvh46xdev8/Loop_through_family.c3p?rlkey=ubo6oupikiz8qi6qiid59m0ld&dl=0
At least we can enlist family member into array or text first then loop through from there.
You just need to click the download button. Since I am in mobile I can only share limited screen as follow:
Following example has 2 different way to create random object: dropbox.com/s/1ng5la2xx3yjyvr/summon_random.capx
Have you ever play the game? Most of them are fake not real-time footage from actual game.