elasticity demo help for two player mode

rdcuberdcube Member Posts: 361
edited November -1 in Working with GS (Mac)
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.

Comments

  • firemaplegamesfiremaplegames Member Posts: 3,211
    You're going to need to be able to handle all 5 touches in BOTH ball actors.

    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.
  • rdcuberdcube Member Posts: 361
    Thanks FMG!
    I'll give that a try.
Sign In or Register to comment.