Using Drag & Drop touch controls with Camera Control

I have a game which scrolls outside the screen with the player. It uses the control camera behavior.
After i added touch controls to the player (drag & drop), the player moves properly when the camera is stable. However, when the camera starts to scroll, the player gets a light speed until the other side of the screen is reached.

For the touch controls i used Constrain Attribute as follows;
Constrain Attribute
self.position.x = Game.Touches.Touch1.X + Scene.Camera.Origin.X
self.position.y = Game.Touches.Touch1.Y + Scene.Camera.Origin.Y

Can you offer me a solution for the player and the camera to move slower with the touch?
Or can you explain what is my mistake?

Thank you all..

Comments

Sign In or Register to comment.