Different actors that can move with touch and android control arrows
Hi, i´m new on game salad and i´m trying to make a puzzle game. My problem is:
when I touch an actor that actor can move with mobile controlers and i did it, but then when i touch another actor the other one still moving. How i can fix that? i need that only the selected actor move.
Best Answer
-
tatiang Posts: 11,949
If you have multiple actors that you want to control (one at a time) with touch screen controls, you need some way to select the actor to control. Have you implemented this yet? I may be able to make you a demo later but you'll need to consider how to determine which actor is selected and then only allow that actor to respond to the touch controls.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Answers
First of all, when you post a question like this you need to explain how you went about making the actor move. What rule condition did you use? Which behavior(s) did you use? Without knowing that, it's hard for me to know what to suggest.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
Thanks for respond!
Ok for moving the actor I create 2 simple touch screen controls. For that I created 2 boolean attributes, one for left movement and other for right movement. So then I create a rule for each actor where everytime I touch that actor my touch screen control are set true. My problem is there, I can´t stop the rule when I touch other actor, so then all the actors that already touched continue moving when I pressed the touch screen controllers.
I´m trying to do something like puzznic
start moving an actor when I select it by touch it and then move it with 2 touch screen controllers, one for right and other for left.
Thanks very much!
Here's a demo: http://forums.gamesalad.com/discussion/comment/527670/#Comment_527670.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
That´s exactly what i was looking for...Thanks a lot!
You're welcome!
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User