Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_attack_coin_rain_ace_cards_controller_Create_0

(view raw script w/o annotations or w/e)
1
var battle_box = obj_dialogue_box_battle_transformation_any
2
var card_width = 41
3
var card_height = 61
4
with (instance_create(320, (-card_height), obj_attack_ace_cards))
5
{
6
    card_target_x = 320 - card_width * 0.5 - 25
7
    card_target_y = battle_box.bbox_top - card_height - 10
8
}
9
with (instance_create(320, (-card_height), obj_attack_ace_cards))
10
{
11
    card_target_x = 320 - card_width * 0.5 + 25
12
    card_target_y = battle_box.bbox_top - card_height - 10
13
}
14
scr_enable_battle_box_surface
scr_enable_battle_box_surface

function scr_enable_battle_box_surface() //gml_Script_scr_enable_battle_box_surface { if (!instance_exists(obj_surface_drawer)) instance_create_depth(0, 0, -999, obj_surface_drawer) }
()
15
attack_coin_spawn_timer = 13
16
alarm[0] = 1
alarm[0]

event_perform_object(obj_attack_mooch_coin_rain_controller, ev_alarm, 0)
17
last_number = 0
18
same_number_amount = 0
19
exc_number = 0