How do you achieve smooth actor to follow touch?
Title says it. How do you guys get a smooth motion of an actor which goes wherever your finger goes? I mean follow your finger, not just move to it. Something like a mouse cursor. I tried:
constrain self.position to game.touches 1X and Y... doesn't work on device. The actor can't catch up to my lightning fast fingers which honestly isn't really fast as I'm not very athletic.
interpolate it's position, even worse. don't get me started on move. It literally almost killed my hope of achieving this. Ideas anyone?
constrain self.position to game.touches 1X and Y... doesn't work on device. The actor can't catch up to my lightning fast fingers which honestly isn't really fast as I'm not very athletic.
interpolate it's position, even worse. don't get me started on move. It literally almost killed my hope of achieving this. Ideas anyone?
Comments
constrain self position x to mouse position x
constrain self postion y to mouse position y
cheers
I know it works on Mac like it's responding perfectly if you try using Web Preview you know what I mean, but once you preview it on your device it sucks badly. Any more suggestions anyone? So far, constraints, interpolate, move, accelerate all doesn't seem to work.
Can someone help me test it out? I think you don't need me to publish it right. Just an actor following the finger. And make sure you try moving fast as in a slashing motion back and forth.