The friction Sprite. You can use this in any of your projects, just backpack it, plus you don't even have to credit me! The Xmod variable changes the boundaries of when you move to a new room. The Ybound variable changes the clamps of your y position. The friction variable changes how much you slide when you stop. The max_speed variable changes how fast you can go.
Note: The higher the friction is, the faster you decelerate. The friction takes its value away from the max speed, so I recommend using a high speed for high friction.