switch players

Get help using Construct 2

Post » Fri Nov 08, 2013 1:52 am

hi everyone i need help with this, i want to do this but i couldnt find a way to do it: i have 2 players on screen (x,y), you control x and y follows you, then you press a button and it switch players now you control y and x follows

the only thing i could get is the switch of players but the partner doesnt follows you, if anyone could help me i would appreciate it.
thx
B
18
S
2
G
2
Posts: 82
Reputation: 1,737

Post » Fri Nov 08, 2013 2:15 am

Give them both the pin behavior.

When you control X, pin y to x and unpin X from y
When you control Y, pin x to y and unpin y from x

Will that work for what you are trying to do?
B
101
S
32
G
11
Posts: 1,552
Reputation: 21,667

Post » Fri Nov 08, 2013 2:27 am

maybe, i will try it and see if it works thx!
B
18
S
2
G
2
Posts: 82
Reputation: 1,737

Post » Fri Nov 08, 2013 5:53 pm

@ArcadEd
i want to do something like this
https://dl.dropboxusercontent.com/u/85479859/creador.capx

you can check it in the second layout the other sprites follow you but i want that when you press a key you change players and control the other sprites, it would work if i have 2 platform behaviors in all the players?haifisch2013-11-08 17:54:34
B
18
S
2
G
2
Posts: 82
Reputation: 1,737


Return to How do I....?

Who is online

Users browsing this forum: plinkie and 25 guests