Yeah, that's a cool effect you got from SMB. How exactly are you doing it?
Thanks!
When I check the collision, if the engine notices that I am on a wall, it draws a small rectangle on the back buffer then inverts it to avoid having ugly looking black dots at corners

And the collision is checked based on the direction you are moving, so it knows which side of the tile to draw the trail on