multiple instances of multi-event mechanics

Get help using Construct 2

Post » Thu Apr 11, 2013 3:07 am

hello

example

i got a moving platform going up and down
that platform has a rotating block attached to it (like a swinging arm)

the connections/links can be done via pin
movement is done via bullet or simulated movement


is there a way to place multiple instances of that swing-arm-platform mechanic without re-adding sprites and pin/movement events for each platform ?

if i place 5 swing-arm sprites and 5 platforms - how would construct2 know which arm belongs to which platform



thanks in advance
much appreciated !
B
7
S
2
G
2
Posts: 12
Reputation: 1,611

Post » Thu Apr 11, 2013 6:43 am

You could/should put them into container. The idea would be, that you place only the swing-arms, and at the start, platform would be generated for that.

So you could do something like this if the elements are in same container:

at start of layout
..for each swing-arm
... set platform position
... pin platform to swing-arm

B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Thu Apr 11, 2013 1:55 pm

works !


thank you !


B
7
S
2
G
2
Posts: 12
Reputation: 1,611


Return to How do I....?

Who is online

Users browsing this forum: Radulepy and 6 guests