make a chain

Get help using Construct 2

Post » Wed Aug 09, 2017 12:11 am

hi
I have 100 of spirte1, 100 sprite2 and 100 Sprite3
I want on start of layout Sprite1 with IID 0 pins to Sprite2(IID 0) and Sprite2 pins to Spirte3(IID 0) and continue ...
I mean the sprites with same IID pin each other.



how do I ?
B
8
Posts: 12
Reputation: 326

Post » Wed Aug 09, 2017 5:07 pm

Besides that i doubt that such a chain 'Pin A to B & pin B to C' actual will work Pin Wise ....

Making that chain is easy ....

System > For > name = "i" .. start = zero ... end is Sprite1.count - 1
System > Pick nth instance > object = Sprite1.. Instance = loopindex("i")
System > Pick nth instance > object = Sprite2.. Instance = loopindex("i")
System > Pick nth instance > object = Sprite3.. Instance = loopindex("i")
______________actions > Pin Sprite1 to Sprite2
______________actions > Pin Sprite2 to Sprite3
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider], brunopalermo, David181 and 9 guests