Deltarune (Chapter 4) script viewer

← back to main script listing

gml_Object_obj_ghosthouse_exit_Alarm_0

(view raw script w/o annotations or w/e)
1
var side = sign(obj_ghosthouse_lock.image_xscale);
2
with (instance_create_depth(obj_ghosthouse_lock.x + (32 * side), (obj_ghosthouse_lock.y + (obj_ghosthouse_lock.sprite_height / 2)) - obj_ghosthouse_lock.sprite_yoffset, -10, obj_gh_exitsign))
3
{
4
    image_xscale *= side;
5
    image_angle = 0;
6
}