|
1
|
event_inherited();
|
|
2
|
if (con == 0)
|
|
3
|
{
|
|
4
|
var jumptime = 12;
|
|
5
|
scr_jump_to_pointscr_jump_to_point
function scr_jump_to_point(arg0, arg1, arg2, arg3, arg4 = 0)
{
var ___jump = scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump)
{
trackalpha = arg4;
trackblend = arg4;
trackindex = arg4;
tracksprite = arg4;
trackangle = arg4;
}
return ___jump;
} (300, 66, 12, jumptime);
|
|
6
|
scr_script_delayedscr_script_delayed
function scr_script_delayed()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed);
__scriptdelay.script = argument[0];
__scriptdelay.alarm[0] = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
}
function scr_script_delayed_until()
{
var __scriptdelay = instance_create(0, 0, obj_script_delayed_function);
__scriptdelay.script = argument[0];
__scriptdelay.condition = argument[1];
__scriptdelay.target = id;
for (var __i = 0; __i < (argument_count - 2); __i++)
__scriptdelay.script_arg[__i] = argument[__i + 2];
__scriptdelay.arg_count = argument_count - 2;
return __scriptdelay;
}
function delay_function(arg0, arg1)
{
return scr_script_delayed(arg0, arg1);
} (scr_var, jumptime, "con", 1);
|
|
7
|
con = -99;
|
|
8
|
}
|
|
9
|
if (con == 1)
|
|
10
|
{
|
|
11
|
actionsiner = -15.707963267948966;
|
|
12
|
actionxsiner = -69.11503837897544;
|
|
13
|
sprite_index = spr_enemy_orange_down;
|
|
14
|
con++;
|
|
15
|
}
|
|
16
|
if (con == 2)
|
|
17
|
{
|
|
18
|
var attackEndTimer = 230;
|
|
19
|
actionsiner++;
|
|
20
|
actionxsiner++;
|
|
21
|
var ydist = ((obj_growtangle.sprite_height / 2) + 40) - (sprite_height / 2);
|
|
22
|
y = obj_growtangle.y + (sin(actionsiner / 10) * ydist);
|
|
23
|
x = (obj_growtangle.x + (sin(actionxsiner / 22) * 60)) - (sprite_width / 2);
|
|
24
|
if (actionsiner > attackEndTimer && (y > ((obj_growtangle.y + ydist) - 10 - (sprite_index / spr_susie_noelle_lift_look_smile_shadow_floor)) || y < ((obj_growtangle.y - ydist) + 10)))
|
|
25
|
{
|
|
26
|
con = 3;
|
|
27
|
scr_jump_to_pointscr_jump_to_point
function scr_jump_to_point(arg0, arg1, arg2, arg3, arg4 = 0)
{
var ___jump = scr_jump_to_point_sprite(arg0, arg1, arg2, arg3, 0, 0);
with (___jump)
{
trackalpha = arg4;
trackblend = arg4;
trackindex = arg4;
tracksprite = arg4;
trackangle = arg4;
}
return ___jump;
} (xstart, ystart, 12, 15);
|
|
28
|
}
|
|
29
|
}
|
|
30
|
if (con == 3)
|
|
31
|
{
|
|
32
|
if (x == xstart && y == ystart)
|
|
33
|
{
|
|
34
|
with (obj_orange_enemy)
|
|
35
|
scr_move_to_point_over_timescr_move_to_point_over_time
function scr_move_to_point_over_time(arg0, arg1, arg2)
{
_mmm = instance_create(x, y, obj_move_to_point);
_mmm.target = id;
_mmm.movex = arg0;
_mmm.movey = arg1;
_mmm.movemax = arg2;
return _mmm;
} (xstart, ystart, 5);
|
|
36
|
with (obj_orange_enemy)
|
|
37
|
visible = true;
|
|
38
|
instance_destroy();
|
|
39
|
}
|
|
40
|
}
|