drag more objects at the same time
hi,
I'm trying to create a system where 4 players on an iPad can drag they own objects but every object separately from the others. I created the drag system but when I drag an object and another player move another one, the second one doesn't move in the right way.
any ideas??
THANKS
I'm trying to create a system where 4 players on an iPad can drag they own objects but every object separately from the others. I created the drag system but when I drag an object and another player move another one, the second one doesn't move in the right way.
any ideas??
THANKS
![;) ;)](http://forums.gamesalad.com/plugins/emojiextender/emoji/twitter/wink.png)
Best Answers
-
Cluv Posts: 229
I am confused by what you are trying to do... Are all the players moving across the entire screen or do they have their own space? In most multiplayer iPad games, both players have their own space... -
Cluv Posts: 229
Then I would set a boolean that gets turned on when the touch is in the appropriate spot, then use that boolean as a "no" case for the opposite touch rule.
In other words:
if touch for player 1 is in the right spot,
then player1touch is TRUE
for player 2 (if touch is in right spot and player1touch is True)
turn on boolean for player 2,
and viceversa.
This kind of "locks" the touch to the current player... I'm not sure if this is the thought you are looking for, but maybe it will help. -
rhinokey Posts: 158
can ios devices even detect more than 2 touches at a time? like 4 seperate fingers moving different objects?
Answers
Thanks
if touch.x and touch.y is in quadrant 1
if touch2.x and touch2.y is in quadrant 1
touch3...
touch4...
each need to be linked to that quadrant and then move that player.
repeat for all four quadrants.
this is a very stupid problem