Follow Finger?
In my game I have it so if you tap somewhere, the character will move to that location. The problem with this is that you have to constantly tap to move around. I want to make it so the character can follow the finger as you drag it around the screen. How do you do this?
Comments
can you post what your code looks like so we can assist.
1.self.motion.linear.velocity.x to game.touches.touch1.x - self.postion.x
2.self.motion.linear.velocity.y to game.touches.touch1.y - self.postion.y
you dont need a change velocity nor a move to because your simply contraining the device
touch coordinates to the position of your finger.
Anyways, I solved the issue using a timer. Thanks, anyways!
self.motionline.velocity.y = self.Speed *( game.Mouse.Position.Y - self.Position.Y )
create self attribute 'speed'
set speed to about 3