Undertale Yellow script viewer

← back to main script listing

gml_Object_obj_attack_mooch_coin_bag_controller_Create_0

(view raw script w/o annotations or w/e)
1
coin_number = 3;
2
coin_number_max = 9;
3
coin_current = 1;
4
coin[0] = -1;
5
coin_dir_offset = choose(45, 135, 225, 315);
6
coin_bag_offset = coin_dir_offset;
7
coin_dir_inc = 90;
8
coin_offset_time = 15;
9
alarm[0] = coin_offset_time;
gml_Object_obj_attack_mooch_coin_bag_controller_Alarm_0.gml

var battle_box = 3154; var point_x = battle_box.x + lengthdir_x(75, coin_dir_offset); var point_y = battle_box.y + lengthdir_y(75, coin_dir_offset); coin[coin_current] = instance_create_depth(point_x, point_y, -999999, obj_attack_mooch_coin_bag_coin); coin_dir_offset += coin_dir_inc; coin_current += 1; coin_number -= 1; if (coin_number == 0) { alarm[1] = 15; exit; } else { alarm[0] = coin_offset_time; }