Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Platformer Video Examples

Use FORCES to Improve your Platformer Examples · By DawnosaurDev

Help me please!

A topic by PaintedMask created Jan 08, 2022 Views: 295 Replies: 2
Viewing posts 1 to 2
(+1)

Hello, i am using the code made by you, it works great but if I try to apply a random force to the player, for example in a 45 angle, the player will only move on the Y axis, and I dont know how to solve this,please!

Developer(+1)

My best guess would be that the force is being applied and then being counter-acted immediately by the Run. So, what I would do is create an option to lerp the player's movement like below for a short duration 0.2s to 0.4s, when you add the force :D. That should hopefully allow both forces to to apply but if you find the Y force is still much stronger one thing I've done when experimenting with adding a Dash is multipliying the Y velocity at the same time the run lerp runs out to balance the X and Y forces out. (Similar to what we do for the Jump Cut). Hope this helps!

(+1)

Thanks a lot, I will try that!