scrSpriteDirection
This script will change the image angle of an object based on the direction it is facing
Script
/// Sprite Direction
/* changes the image angle based on the direction the object is facing
to use this apply values to these variables:
sprdir = (boolean)
enables/disables the script
sprdir_dev = (double)
changes the angle in which the object points
*/
if (sprdir) {
image_angle = direction + sprdir_dev;
}