Touch movement

TinobossTinoboss 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

  • sebmat86sebmat86 Member Posts: 339

    Not sure how you want it. But check this tutorial out, might be what you´re trying to do:

    Cheers!

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    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.

Sign In or Register to comment.