scrWrap

This script will wrap the object around the screen

 Script

/// Screen Wrapping
/* wraps the object around the screen once it passes of the screen's edge + wrap_dev
to use this apply values to these variables:
wrap = (boolean) 
    enables/disables the script
wrap_dev = (double)
    the distance out the object has to be before it wraps the screen
*/
if (wrap) {
    move_wrap(true,true,wrap_dev)
}