Deltarune (Chapter 3) script viewer

← back to main script listing

gml_Object_obj_shutta_photo_controller_Draw_77

(view raw script w/o annotations or w/e)
1
introtimer++;
2
var _continue = 0;
3
if (i_ex(obj_shutta_enemy) && (obj_shutta_enemy.photoactcount == 2 || obj_shutta_enemy.photoactcount == 6) && rotatingvar == false)
4
{
5
}
6
else if (image_alpha < 1)
7
{
8
    if (introtimer == 1)
9
    {
10
        x = camerax() + (camerawidth() / 2);
11
        y = cameray() + 160;
12
    }
13
    if (obj_shutta_enemy.photoactcount != 1 && obj_shutta_enemy.photoactcount != 5 && subact != "rotation")
14
        image_alpha += 0.1;
15
    else if (introtimer > 10)
16
        image_alpha += 0.1;
17
    else
18
        timer = 0;
19
    var _size_factor = ease_out_back(image_alpha, 0, 1, 1);
20
    width = lerp(min_width, max_width, _size_factor);
21
    height = lerp(min_height, max_height, _size_factor);
22
    mercygained = 0;
23
}
24
if (state == "aiming")
25
{
26
    timer++;
27
    if (i_ex(obj_shutta_nobyact_shutta) && obj_shutta_nobyact_shutta.con != 0 && obj_shutta_nobyact_shutta.con != 2 && timer > (timer_duration - 6))
28
        timer = timer_duration - 6;
29
    if (timer >= timer_duration)
30
    {
31
        if (subact != "tvs")
32
        {
33
            tookaphoto = false;
34
            state = "capture";
35
            snd_play(snd_error);
36
        }
37
        else
38
        {
39
            obj_tenna_enemy.minigamefailcount += obj_shutta_nobyacttest.smilecount;
40
            obj_shutta_nobyacttest.smilecount = 0;
41
        }
42
    }
43
    with (obj_shutta_shine)
44
        image_alpha = 0;
45
    if (button1_p() && subact != "tvs" && introtimer > 35)
46
    {
47
        state = "capture";
48
        endmessage = message_default;
49
        flash_alpha = 1.2;
50
        subjects = [];
51
        snd_play_volume(snd_camera_flash, 0.8);
52
        uncentered_subject = false;
53
        offside_subject = false;
54
        have_subject = false;
55
        var _comment = -4;
56
        if (got_kris || got_susie || got_ralsei)
57
        {
58
            have_subject = true;
59
            var _avg_x = 0;
60
            var _avg_y = 0;
61
            var _hero_num = 0;
62
            with (obj_heroparent)
63
            {
64
                if (!place_meeting(x, y, obj_shutta_photo_controller))
65
                    continue;
66
                var _cx = (x - sprite_xoffset) + (sprite_width / 2);
67
                var _cy = (y - sprite_yoffset) + (sprite_height / 2);
68
                _avg_x += _cx;
69
                _avg_y += _cy;
70
                with (obj_shutta_photo_controller)
71
                {
72
                    if (!point_in_rectangle(_cx, _cy, x - (width / 2), y - (height / 2), x + (width / 2), y + (height / 2)))
73
                        offside_subject = true;
74
                }
75
                _hero_num++;
76
            }
77
            _avg_x /= _hero_num;
78
            _avg_y /= _hero_num;
79
            if (got_kris && subact != "krs")
80
                
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("kris", spr_kris_peace, 0, 0);
81
            if (got_susie && (subact != "susieitems" && subact != "krs"))
82
                
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("susie", spr_susie_pose, 0, 0);
83
            if (got_ralsei && subact != "krs")
84
                
scr_battle_sprite_set
scr_battle_sprite_set

function
scr_battle_sprite_set(arg0, arg1, arg2, arg3)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 8; hurt = 0; attacktimer = 0; sprite_index = arg1; image_speed = arg2; image_index = 0; if (arg3 == 0) maxframes = image_number; global.faceaction[myself] = 0; } } }
("ralsei", spr_ralsei_pose, 0, 0);
85
        }
86
        subact_state = "capture";
87
        switch (subact)
88
        {
89
            case "susieitems":
90
                event_user(0);
91
                break;
92
            case "krs":
93
                event_user(1);
94
                break;
95
            case "enemyjump":
96
                event_user(2);
97
                break;
98
            case "pipes":
99
                event_user(4);
100
                break;
101
            case "palms":
102
                event_user(5);
103
                break;
104
            case "free":
105
                event_user(6);
106
                break;
107
            case "lancer":
108
                event_user(7);
109
                break;
110
            case "rotation":
111
                event_user(8);
112
                break;
113
            case "ralsei":
114
                event_user(9);
115
                break;
116
            case "tvs":
117
                event_user(10);
118
                break;
119
            case "bullets":
120
                event_user(11);
121
                break;
122
        }
123
    }
124
}
125
switch (state)
126
{
127
    case "intro":
128
        if (introtimer == 10)
129
        {
130
            if (i_ex(obj_herosusie))
131
            {
132
                if (i_ex(obj_heroralsei))
133
                {
134
                    difficulty = 0;
135
                    if (obj_shutta_enemy.photoactcount == 1)
136
                        subact = "free";
137
                    if (obj_shutta_enemy.photoactcount == 2)
138
                        subact = "rotation";
139
                    if (obj_shutta_enemy.photoactcount == 3)
140
                        subact = "lancer";
141
                    if (obj_shutta_enemy.photoactcount == 4)
142
                        subact = "susieitems";
143
                    if (obj_shutta_enemy.photoactcount == 5)
144
                        subact = "ralsei";
145
                    if (obj_shutta_enemy.photoactcount == 6)
146
                    {
147
                        subact = "rotation";
148
                        if (obj_shutta_enemy.acedrotationphoto == true)
149
                            difficulty = 1;
150
                    }
151
                    if (obj_shutta_enemy.photoactcount == 7)
152
                        subact = "lancer";
153
                    if (obj_shutta_enemy.photoactcount == 8)
154
                        subact = "krs";
155
                }
156
            }
157
            else
158
            {
159
                subact = 
scr_weighted_choice
scr_weighted_choice

function
scr_weighted_choice()
{ var _n = 0; for (var _i = 1; _i < argument_count; _i += 2) { if (argument[_i] <= 0) continue; _n += argument[_i]; } _n = random(_n); for (var _i = 1; _i < argument_count; _i += 2) { if (argument[_i] <= 0) continue; _n -= argument[_i]; if (_n < 0) return argument[_i - 1]; } return argument[0]; }
("enemyjump", 1);
160
            }
161
            if (i_ex(obj_tenna_enemy))
162
                subact = "tvs";
163
            debug_message("chose subact: " + subact);
164
            subact_state = "init";
165
            state = "aiming";
166
            timer = 0;
167
        }
168
        break;
169
    case "aiming":
170
        break;
171
    case "capture":
172
        if (tookaphoto == true)
173
        {
174
            surface_free(photo_surface);
175
            if (!surface_exists(photo_surface))
176
                photo_surface = surface_create(photo_width, photo_height);
177
            surface_set_target(photo_surface);
178
            draw_clear_alpha(c_black, 1);
179
            surface_copy_part(photo_surface, 0, 0, application_surface, x - camerax() - (photo_width / 2), y - cameray() - (photo_height / 2), photo_width, photo_height);
180
            surface_reset_target();
181
            if (screenshot != -1)
182
                sprite_delete(screenshot);
183
            screenshot = sprite_create_from_surface(photo_surface, 0, 0, photo_width, photo_height, 0, 0, 0, 0);
184
        }
185
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("kris");
186
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("noelle");
187
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("ralsei");
188
        
scr_battle_sprite_reset
scr_battle_sprite_reset

function
scr_battle_sprite_reset(arg0)
{ _charactor = arg0; _charinstance = obj_herokris; if (_charactor == "noelle") { _charinstance = obj_heronoelle; _charnum = 4; } if (_charactor == "ralsei") { _charinstance = obj_heroralsei; _charnum = 3; } if (_charactor == "susie") { _charinstance = obj_herosusie; _charnum = 2; } if (_charactor == "kris") { _charinstance = obj_herokris; _charnum = 1; } if (instance_exists(_charinstance)) { with (_charinstance) { state = 0; hurt = 0; attacktimer = 0; attacked = 0; maxframes = 0; global.faceaction[myself] = 0; } } }
("susie");
189
        filter1.x = -9999;
190
        filter1.y = -9999;
191
        filter2.x = -9999;
192
        filter2.y = -9999;
193
        filter3.x = -9999;
194
        filter3.y = -9999;
195
        filter4.x = -9999;
196
        filter4.y = -9999;
197
        instance_destroy(obj_shutta_photo_sprite);
198
        subact_state = "post_capture";
199
        switch (subact)
200
        {
201
            case "susieitems":
202
                event_user(0);
203
                break;
204
            case "krs":
205
                event_user(1);
206
                break;
207
            case "enemyjump":
208
                event_user(2);
209
                break;
210
            case "pipes":
211
                event_user(4);
212
                break;
213
            case "palms":
214
                event_user(5);
215
                break;
216
            case "free":
217
                event_user(6);
218
                break;
219
            case "lancer":
220
                event_user(7);
221
                break;
222
            case "rotation":
223
                event_user(8);
224
                break;
225
            case "ralsei":
226
                event_user(9);
227
                break;
228
            case "tvs":
229
                event_user(10);
230
                break;
231
            case "bullets":
232
                event_user(11);
233
                break;
234
        }
235
        if (tookaphoto == true)
236
        {
237
            if (mercygained > 100)
238
                mercygained = 100;
239
            debug_message("mercy gained: " + string(mercygained));
240
            with (obj_monsterparent)
241
            {
242
                if (image_alpha != 0)
243
                    
scr_mercyadd
scr_mercyadd

function
scr_mercyadd(arg0, arg1)
{ global.mercymod[arg0] += arg1; if (global.mercymod[arg0] < 0) global.mercymod[arg0] = 0; if (global.mercymod[arg0] >= 100) global.mercymod[arg0] = 100; var _playsound = 1; if (arg1 <= 0) _playsound = 0; with (obj_dmgwriter) { if (type == 5 && mercytimer < 8) _playsound = 0; } if (_playsound) { var _pitch = 0.8; if (arg1 < 99) _pitch = 1; if (arg1 <= 50) _pitch = 1.2; if (arg1 <= 25) _pitch = 1.4; snd_play_x(snd_mercyadd, 0.8, _pitch); } __mercydmgwriter = instance_create(global.monsterx[arg0], (global.monstery[arg0] + 20) - (global.hittarget[arg0] * 20), obj_dmgwriter); __mercydmgwriter.damage = arg1; __mercydmgwriter.type = 5; global.hittarget[arg0]++; }
(myself, other.mercygained);
244
            }
245
        }
246
        if (tookaphoto == false)
247
        {
248
            with (obj_shutta_text)
249
                instance_destroy();
250
            endmessage = stringsetsubloc("* UUMM!! Maybe actually&press ~1 to take a photo&next time?", 
scr_get_input_name
scr_get_input_name

function
scr_get_input_name(arg0)
{ var _control = "[?]"; if (global.is_console || obj_gamecontroller.gamepad_active) { _control = global.input_g[arg0]; if (_control == gp_padr) return "\\*D "; if (_control == gp_padl) return "\\*A "; if (_control == gp_padu) return "\\*W "; if (_control == gp_padd) return "\\*S "; if (_control == global.button0) return "\\*Z "; if (_control == global.button1) return "\\*X "; if (_control == global.button2) return "\\*C "; } var left_bracket = (global.lang == "en") ? "[" : "["; var right_bracket = (global.lang == "en") ? "]" : "]"; _control = left_bracket + global.asc_def[global.input_k[arg0]] + right_bracket; if (!is_string(_control)) _control = "[?]"; else return _control; }
(4), "obj_shutta_photo_controller_slash_Draw_77_gml_175_0");
251
        }
252
        slide_time = 0;
253
        state = "result";
254
        break;
255
    case "result":
256
        if (slide_time == 0)
257
        {
258
            instance_destroy(obj_writer);
259
            if (global.mercymod[obj_shutta_enemy.myself] >= 100 && obj_shutta_enemy.amiabossfight)
260
            {
261
                msgset(0, endmessage + "/%");
262
                if (obj_shutta_enemy.amiabossfight)
263
                {
264
                    
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; ...
("tenna");
265
                    with (obj_face)
266
                        instance_destroy();
267
                    global.fc = 22;
268
                    global.typer = 80;
269
                    
scr_battletext
scr_battletext

function
scr_battletext()
{ xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); if (global.fc != 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.fc == 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.chapter == 3 && i_ex(obj_tennabattleconvo_controller) && (obj_tennabattleconvo_controller.chattedduringbulletphase == true || (obj_tennabattleconvo_controller.introcon >= 0.1 && obj_tennabattleconvo_controller.introcon <= 2))) { } else { myface = instance_create(xx + 26, yy + 380, obj_face); } with (battlewriter) { dialoguer = 1; facer = 1; if (global.fc == 0 && originalcharline == 33) charline = 26; } return battlewriter; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
();
270
                }
271
                else
272
                {
273
                    
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
274
                }
275
                obj_shutta_enemy.endcon = 1;
276
            }
277
            else
278
            {
279
                msgset(0, endmessage + "/%");
280
                if (obj_shutta_enemy.amiabossfight)
281
                {
282
                    
scr_speaker
scr_speaker

function
scr_speaker(arg0)
{ _speaker = arg0; global.typer = 5; if (global.darkzone == 1) global.typer = 6; if (global.fighting == 1) global.typer = 4; global.fc = 0; global.fe = 0; if (_speaker == "silent" && global.darkzone == 0) global.typer = 2; if (_speaker == "silent" && global.darkzone == 1) global.typer = 36; if (_speaker == "balloon" || _speaker == "enemy") global.typer = 50; if (_speaker == "sans") { global.typer = 14; global.fc = 6; } if (_speaker == "undyne" || _speaker == "und") { global.typer = 17; global.fc = 9; } if (_speaker == "temmie" || _speaker == "tem") global.typer = 21; if (_speaker == "jevil") global.typer = 35; if (_speaker == "catti") global.fc = 13; if (_speaker == "jockington" || _speaker == "joc") global.fc = 14; if (_speaker == "catty" || _speaker == "caddy") global.fc = 16; if (_speaker == "bratty" || _speaker == "bra") global.fc = 17; if (_speaker == "rouxls" || _speaker == "rou") global.fc = 18; if (_speaker == "burgerpants" || _speaker == "bur") global.fc = 19; if (_speaker == "spamton") { if (global.fighting == 0) global.typer = 66; else global.typer = 68; } if (_speaker == "sneo") global.typer = 67; if (_speaker == "tenna") { global.typer = 80; if (global.fighting == 1) global.typer = 81; } if (_speaker == "susie" || _speaker == "sus") { global.fc = 1; global.typer = 10; if (global.darkzone == 1) { global.typer = 30; if (global.fighting == 1) global.typer = 47; } } if (_speaker == "ralsei" || _speaker == "ral") { global.fc = 2; global.typer = 31; if (global.fighting == 1) global.typer = 45; if (global.flag[30 ralsei_hat_state] == 1) global.typer = 6; } if (_speaker == "noelle" || _speaker == "noe") { global.fc = 3; if (global.darkzone == 0) global.typer = 12; else global.typer = 56; if (global.fighting == 1) global.typer = 59; } if (_speaker == "toriel" || _speaker == "tor") { global.fc = 4; global.typer = 7; } if (_speaker == "asgore" || _speaker == "asg") { global.fc = 10; global.typer = 18; } if (_speaker == "king" || _speaker == "kin") { global.fc = 20; global.typer = 33; ...
("tenna");
283
                    with (obj_face)
284
                        instance_destroy();
285
                    global.fc = 22;
286
                    global.typer = 80;
287
                    
scr_battletext
scr_battletext

function
scr_battletext()
{ xx = __view_get(e__VW.XView, 0); yy = __view_get(e__VW.YView, 0); if (global.fc != 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.fc == 0) battlewriter = instance_create(xx + 30, yy + 376, obj_writer); if (global.chapter == 3 && i_ex(obj_tennabattleconvo_controller) && (obj_tennabattleconvo_controller.chattedduringbulletphase == true || (obj_tennabattleconvo_controller.introcon >= 0.1 && obj_tennabattleconvo_controller.introcon <= 2))) { } else { myface = instance_create(xx + 26, yy + 380, obj_face); } with (battlewriter) { dialoguer = 1; facer = 1; if (global.fc == 0 && originalcharline == 33) charline = 26; } return battlewriter; } enum e__VW { XView, YView, WView, HView, Angle, HBorder, VBorder, HSpeed, VSpeed, Object, Visible, XPort, YPort, WPort, HPort, Camera, SurfaceID }
();
288
                }
289
                else
290
                {
291
                    
scr_battletext_default
scr_battletext_default

function
scr_battletext_default()
{ global.fc = 0; global.typer = 4;
scr_battletext();
return battlewriter; }
();
292
                }
293
            }
294
        }
295
        slide_duration = 20;
296
        if (slide_time < slide_duration)
297
            slide_time++;
298
        x = camerax() + (camerawidth() / 2);
299
        y = ease_out_back(slide_time, cameray() + cameraheight(), -280, slide_duration);
300
        angle = ease_out_back(slide_time, -50, 60, slide_duration);
301
        if (flash_alpha <= 0)
302
        {
303
            if (button1_p())
304
            {
305
                with (obj_shutta_text)
306
                    con = 2;
307
                state = "outro";
308
                slide_time = 0;
309
            }
310
        }
311
        break;
312
    case "outro":
313
        slide_duration = 10;
314
        if (slide_time < slide_duration)
315
        {
316
            slide_time++;
317
        }
318
        else
319
        {
320
            if (endmessage == message_ralsei && ralseicon == 0)
321
            {
322
                points_display = instance_create(0, 0, obj_dw_points_fake_ui);
323
                with (points_display)
324
                {
325
                    xx -= 0;
326
                    yy -= 60;
327
alarm[0]
328
                }
329
                with (points_display)
330
                    display_points(100);
331
                with (points_display)
332
                    show_point_increase();
333
                ralseicon = 1;
334
            }
335
            if (ralseicon == 1 && !i_ex(obj_dw_points_fake_ui))
336
                ralseicon = 2;
337
            if (endmessage == message_ralsei && ralseicon < 2)
338
                exit;
339
            instance_destroy();
340
            if (i_ex(obj_growtangle) && obj_growtangle.growcon != 3)
341
                obj_growtangle.growcon = 3;
342
        }
343
        x = camerax() + (camerawidth() / 2);
344
        y = ease_in_sine(slide_time, (cameray() + cameraheight()) - 280, 280, slide_duration);
345
        break;
346
}
347
image_xscale = width / 32;
348
image_yscale = height / 32;
349
if (state == "aiming")
350
{
351
    x += ((right_h() - left_h()) * 10);
352
    y += ((down_h() - up_h()) * 10);
353
    x = clamp(x, camerax() + 100, (camerax() + camerawidth()) - 100);
354
    y = clamp(y, cameray() + 80, cameray() + 256);
355
    switch (subact)
356
    {
357
        case "susieitems":
358
            event_user(0);
359
            break;
360
        case "krs":
361
            event_user(1);
362
            break;
363
        case "enemyjump":
364
            event_user(2);
365
            break;
366
        case "pipes":
367
            event_user(4);
368
            break;
369
        case "palms":
370
            event_user(5);
371
            break;
372
        case "free":
373
            event_user(6);
374
            break;
375
        case "lancer":
376
            event_user(7);
377
            break;
378
        case "rotation":
379
            event_user(8);
380
            break;
381
        case "ralsei":
382
            event_user(9);
383
            break;
384
        case "tvs":
385
            event_user(10);
386
            break;
387
        case "bullets":
388
            event_user(11);
389
            break;
390
    }
391
}