Hello. I am making tiny game for just my own pleasure. I have one tiny problem with movement. When I stop holding keys for movement my character stops immediately but I want it to be more smooth. I want to see decreasing velocity not instant stopping. That's code. What should I do to get result I want?
It might help to create a pair of "target velocity" variables that you set instead of your character's actual velocity, and have your character's velocity converge on the target velocity in your game loop somewhere (ideally in CharProp's update member function, if it has one).