Help with dragging
AfterBurnett
Member Posts: 3,474
Hi guys, I've searched and searched the forums but can't find what I need.
Basically I have decided to go with dragging controls for my ship... the problem with constraining XY to touchXY is that the player can tap anywhere and the ship will jump to it (allowing cheating).
I have tried vectortoAngle but it jumps horribly when it reaches its destination and the move to option is not viable as it just stops as soon as the ship reaches the touchxy point. I can wrap it inside a timer but this feels odd, it's not very smooth and it also jumps around from time to time when at the target XY point.
So... how do we do a SMOOTH follow movement with no jumping around on the spot when at touchXY points?
Help!
Thanks
Basically I have decided to go with dragging controls for my ship... the problem with constraining XY to touchXY is that the player can tap anywhere and the ship will jump to it (allowing cheating).
I have tried vectortoAngle but it jumps horribly when it reaches its destination and the move to option is not viable as it just stops as soon as the ship reaches the touchxy point. I can wrap it inside a timer but this feels odd, it's not very smooth and it also jumps around from time to time when at the target XY point.
So... how do we do a SMOOTH follow movement with no jumping around on the spot when at touchXY points?
Help!
Thanks