picking problem ?

Get help using Construct 2

Post » Mon Jan 06, 2014 11:39 am

hello !

im making a rotating saw obstacle in my game.
the player must avoid it.

it work well but :

i have the "sawbase", with a sine behavior, which make it move in a lot of different ways.

then i have the saw itself, with rotate behavior.

on layout start, the base spawn a saw on the "fix" point.
then the saw is pinned on the saw base.

but when i have mutliple sawbase, the saw are pinned to the first saw base only.

how can i make the spawned saw pick the nearest sawbase and then pin to it ?

thanks for help !

B
19
S
5
Posts: 104
Reputation: 1,761

Post » Mon Jan 06, 2014 2:37 pm

Use 'For Each' to pick each 'sawbase' and spawn/pin.
ImageImageImage
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Tue Jan 07, 2014 12:48 am

@blackhornet   thanks ! it worked!
B
19
S
5
Posts: 104
Reputation: 1,761


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 15 guests