Touch movement
Tinoboss
Member Posts: 37
Hello. I am currently making a game. I want it so wherever I bring my finger one of the actors just follows. I got something like it, I got it to where it would go to my finger but I would have to lift my finger off the screen to make it keep moving. How do I get it so it just glides without lifting my finger off the screen
Comments
Not sure how you want it. But check this tutorial out, might be what you´re trying to do:
Cheers!
You could record the touch positions X and Y locations and put an accelerate toward behavior in the actor you want to follow the touch. And accelerate toward the recorded X and Y locations, then it would always move toward that location.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page