Hello! I'm trying to program a top-down RPG game and am trying to simulate sliding on ice.
An easy way to do this is by decreasing both acceleration and deceleration, so the character has trouble gaining traction and has more success in maintaining their momentum.
I am using the standard "8 directional" movement type.
Unfortunately, the major issues with this method is when changing direction the player has no resistance. Once reaching top speed they will
They will snap to the face the direction pressed and using the speed they gained beforehand to move in the new direction without any resistance. This also means it isn't possible to slide diagonally, as releasing both keys required for the direction on the EXACT same frame is incredibly difficult
Is there any way I could program inertia/momentum? Would it be more efficient to program my own movement system?
I'm more than willing to program my own, and would much prefer if I did! Are there any pointers on how I'd achieve this? What about collision? I'll need to do more than just tell the object to "STOP".
The given 8 directional movement type is too basic and confusing to use, I want to make my OWN movement system thing. Any tips before I make an attempt?
Gif of what the heck's going on: