- Home /
Question by
BenBonkGames · Nov 29, 2019 at 02:42 PM ·
2dscripting problemplatformerteleportdash
Ground dash is like a teleport
Hi, I'm making a 2d game in which I've tried to create a dash mechanic that can be used on the ground. Kind of like a quick boost a speed or dash across the floor, kind of like the dash in Brawlhalla. I've made a script but the problem is the dash looks more like a teleport rather than a dash itself, as when I use the dash instead of moving to my desired position over a short period of time, my player instantly blinks to the location, which is not what I want. I'm not sure if I have to totally rework my script or how I'm applying my force but here is my script -
which is being called in FixedUpdate. Any help would be apricated.
capture.png
(10.8 kB)
Comment
Please don't post code screencaps, use the code formatter.
Can you also add the code for stopping?