function scr_pause_plat_bullet() { if (!paused && !custom_paused) { paused_dir = direction; paused_spd = speed; paused_spr = sprite_index; paused_img = image_index; paused_imgspd = image_speed; paused_grav = gravity; paused = 1; } speed = 0; gravity = 0; image_speed = 0; } function scr_unpause_plat_bullet() { if (paused || custom_paused) { paused = 0; custom_paused = 0; direction = paused_dir; speed = paused_spd; sprite_index = paused_spr; image_index = paused_img; image_speed = paused_imgspd; gravity = paused_grav; } } function scr_pause_plat_entity() { if (!paused && !custom_paused) { paused_dir = direction; paused_spd = speed; paused_spr = sprite_index; paused_img = image_index; paused_imgspd = image_speed; paused = 1; } speed = 0; gravity = 0; image_speed = 0; } function scr_unpause_plat_entity() { if (paused || custom_paused) { paused = 0; custom_paused = 0; direction = paused_dir; speed = paused_spd; sprite_index = paused_spr; image_index = paused_img; image_speed = paused_imgspd; gravity = entity_gravity; if (object_index == obj_plat_player && attacking) image_speed = 1; } }