Multi touch is driving me crazy

daaddddaaddd Member Posts: 116

Hello fellows, so i am awaken at 3:00 AM because i can't get this figured out !!
i am making a project wich 2 buttons are in the screen , they can scroll only on the Y position , one is in the right and the other in the left (landscape), but when i make a rule to constrain my touch1 to move the left actor and touch 2 to the right it gets confusing because um side wants to control the other depending on wich order i press, i tried after making a rule with "count" when touch.count = 1 and x position < 568/2 then the touch1 would be associated to the left, but this didnt work and i am kind of upset now, i usually take long but always solve my problems in GS and unfortunally i dont have a clue how to make this crazy touch system to work, only one side move or they both move or none move or one touch gets in the way of the other, this would be the first time i would pay 10 bucks for a template but i searched everywhere and didnt found anything like that wich is weird because in a simple table game it would be needed , if someone can help this poor soul i would appreciate a lot, sorry for bad english brazillian here, wish you all good,thank you.

Comments

  • cbtcbt Member Posts: 644

    How about putting 2 large actors to the whole screen. One is on the left and one is on the right. You can than say "if the left actor touched" etc.

  • UtopianGamesUtopianGames Member Posts: 5,692
    edited May 2014

    Since you mentioned paying have you seen The Guru's excellent multi touch template on DeepBlueMarket.com?

    Darren.

  • colandercolander Member Posts: 1,610
    edited May 2014

    Multitouch doesn't know which touch is which it just counts the touches. Have a look at Dave's (GameSaladGuru) Multi Touch Demo

  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803

    The Official Cross-Platform Controller Template that comes with GameSalad should help with this. The Touch# actors are used to trigger collision events with the control actors to determine which specific touch is controlling the control actor.
    The Touch# actors are constrained to their specific touch attributes, so when an actor collides with Touch1 it can set a self attribute that it is being controlled by Touch1.

Sign In or Register to comment.