elasticity demo help for two player mode
rdcube
Member Posts: 361
from this demo: http://gamesalad.com/game/play/38647
how could it be possible to have 'two player' each with its own ball?
I tried duplicating the actors and changing attributes for X2 and Y2 and it works as long as each has a turn, however, once it's on the iphone/ipod and two fingers are on the device, the ball constraints to only one actor either ball1(X/Y) or ball2(X2/Y2)
I think it might have to do something with multitouch, but not sure which x/y I should replace to make this work.
any help/suggestions would be greatly appreciated.
Thanks in advanced.
how could it be possible to have 'two player' each with its own ball?
I tried duplicating the actors and changing attributes for X2 and Y2 and it works as long as each has a turn, however, once it's on the iphone/ipod and two fingers are on the device, the ball constraints to only one actor either ball1(X/Y) or ball2(X2/Y2)
I think it might have to do something with multitouch, but not sure which x/y I should replace to make this work.
any help/suggestions would be greatly appreciated.
Thanks in advanced.
Comments
Because you can't predict which player will touch which actor when, you're just going to have to cover your bases. This same issue will occur when you have a game with a virtual joystick and two buttons. You don't know which actor the player will touch first, so you have to be ready to handle all of them.
Check out CodeMonkey's joystick Demo for a nice solution to this problem.
I'll give that a try.