# How do I set same speed for moveto behavior weather object is going near or far away?

From the Asset Store
• I need help on MoveTo Behavior.

I am moving object with move to behavior.

But problem is If i move object at small distance then it moves quickly and if i move it far away then it moves slow.

How could i set same speed weather it moving near or furthest.

Is there any way to do this?

• Set acceleration and deceleration speed to 0.

• this is not about acceleration, deceleration. This is about speed at low distance and high distance.

Suppose Speed is 600. On low distance it moves fast and high distance it moves Slow. This is similar to Tween behavior. Move object to low distance in 1 second is lower speed and move to high distance in 1 second is faster. here it is opposite.

• It needs time to accelerate/decelerate. Try setting them to 0 and see if it helps.

• So you want it to move the same amount of time regardless of distance? Then easiest way would be to set acceleration and deceleration to 0 and set MoveTo speed to (distance/time)

• i feel that i am wrong here and my question is not valid. i need to set few custom speeds according to distance.

Thanks you both

• If you want to move to a point over a fixed time, the Tween behavior is more appropriate.

If you want to move to a point with a maximum speed, the Move To behavior is more appropriate.

• Yes that's why i said my question is not valid.

If i use tween then object moves fast at high distance and if i use "move to" then objects moves slow at high distance. So i have to add few custom speed here like, if distance is low then less speed if distance is high then add extra speed.

• ## Try Construct 3

Develop games in your browser. Powerful, performant & highly capable.

Construct 3 users don't see these ads
• If you set acceleration/deceleration to 0, then MoveTo moves at the same constant speed. It is not slow or fast, the speed is the same.

If you need the traveling time to be same, then use the formula for speed SimpleGames gave you.

• 10 posts