Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_attack_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 - 50
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
12
    card_target_y = battle_box.bbox_top - card_height - 10
13
}
14
with (instance_create(320, (-card_height), obj_attack_ace_cards))
15
{
16
    card_target_x = 320 - card_width * 0.5 + 50
17
    card_target_y = battle_box.bbox_top - card_height - 10
18
}