Move to problems
Brundi
Member Posts: 60
I Have a very simple question when i use the move to behaviour it just stops when it reaches its destination and i have tried changing it from run to completion and not and it still stops. How do i make it keep moving to the mouse position every time i click
Thanks, Brandon
Best Answer
-
jamie_c ImagineLabs.rocks Posts: 5,772
Ah okay, silly me. I didn't have the rule set up correctly to initiate the Move To. A sample is attached for you to check out if you like.
Answers
You would need to store the X and Y location of the click in two attributes and then trigger the Move To each time a click is registered.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Hmm, weird. It's not working as expected... wonder if its a bug.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Ha, It worked for me. I did - When touch is outside - move to - game.touches.touch1X by game.touches.touch1X without having run to completion checked
Ok thanks jamie