Edge Slide Demo

by Ter13
Pixel Movement with diagonal and half-edge sliding.
ID:1479786
 
Special thanks goes out to Lige and Fugsnarf, who both have reported minor bugs in the demo.

Fugsnarf pointed out correctly that the movement loop made it possible for two movements to occur in the same frame.

Lige pointed out correctly that I had forgotten to account for bound_x and bound_y in the locatecorner function.

This update should fix offset bounding boxes, and keep the double-movement issue from occurring.
Just wanted to let you know that the double movement thing still happens.

Edit: I put sleep(world.tick_lag) before the loop begins and it's fine now.
How could I prevent diagonal movement? Also it would be nice if you would do a jump option, too.