This is an engine for movement, collision, and gravity. WASD to move, T to add a trail (separate sprite :O), D to make trail disappear. Change trail color to whatever, there’s also a lag fail-safe (change if u want).
Thanks to @deathcharge415 for sprite(s).