Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_attack_ace_cards_Create_0

(view raw script w/o annotations or w/e)
1
switch (irandom_range(1, 4))
2
{
3
    case 1:
4
        idle_sprite = 3228;
5
        flip_sprite = 3688;
6
        shape_sprite = 3121;
7
        break;
8
    case 2:
9
        idle_sprite = 2099;
10
        flip_sprite = 2929;
11
        shape_sprite = 2986;
12
        break;
13
    case 3:
14
        idle_sprite = 110;
15
        flip_sprite = 3355;
16
        shape_sprite = 1459;
17
        break;
18
    case 4:
19
        idle_sprite = 3479;
20
        flip_sprite = 2619;
21
        shape_sprite = 1525;
22
        break;
23
}
24
sprite_index = flip_sprite;
25
image_speed = 0;
26
card_original_x = xstart;
27
card_original_y = ystart;
28
card_target_x = 0;
29
card_target_y = 0;
30
card_active = true;
31
attack_stage = 0;
32
audio_play_sound(snd_card_game_deal, 1, 0);
33
depth = -999999;