— problem, actualy your solution is a great one
ome6a1717 I made a test using ramones solution...and works very well
It works like this:
1.Before dashing calculate the target position target_x
2. if distance from player to target position is greater than dt*speed, than its ok to move using dt*speed
3. else just move the player to target position
If want more explanations, please say so..sorry for my bad english
[EDIT]: use < > keys to "dash", I think the same concept works for dashing at an angle and up, but I not sure.
The red lines represent the player position every tick...