|
1
|
inst = instance_create_depth(x + 120, y + 150, depth + 10, obj_shadowman_sharpshoot_target);
|
|
2
|
inst.type = 4;
|
|
3
|
if (obj_tenna_enemy.myattackchoice == 21)
|
|
4
|
inst.type = 5;
|
|
5
|
if (i_ex(obj_tenna_zoom) && obj_tenna_zoom.minigamedifficulty == 1)
|
|
6
|
inst.type = 5;
|
|
7
|
inst.parentid = 136;
|
|
8
|
if (i_ex(obj_tenna_minigame_ui))
|
|
9
|
depth = obj_tenna_minigame_ui.depth - 1;
|
|
10
|
if (inst.type == 4)
|
|
11
|
{
|
|
12
|
if (i_ex(obj_tenna_zoom) && obj_tenna_zoom.minigameinsanity == true)
|
|
13
|
inst.bullet_timer = 19;
|
|
14
|
}
|
|
15
|
instance_create(x, y, obj_lightemup_bg);
|
|
16
|
cursor_timer = 0;
|
|
17
|
cursor_con = 0;
|
|
18
|
cursor_siner = 66;
|
|
19
|
cursor_shoottimer = 0;
|
|
20
|
cursor_savex = 0;
|
|
21
|
cursor_savey = 0;
|
|
22
|
cursor_alpha = 0;
|
|
23
|
cursor_xscale = 3;
|
|
24
|
cursor_yscale = 3;
|
|
25
|
cursor_angle = 0;
|
|
26
|
cursor_alpha = 1;
|
|
27
|
cursor_x = camerax() + 200;
|
|
28
|
cursor_y = cameray() + 157;
|
|
29
|
cursor_xstart = cursor_x;
|
|
30
|
cursor_ystart = cursor_y;
|
|
31
|
shooting_enabled = true;
|
|
32
|
with (obj_tenna_enemy)
|
|
33
|
{
|
|
34
|
var xx = camerax();
|
|
35
|
var yy = cameray();
|
|
36
|
obj_herokris.x -= 8;
|
|
37
|
obj_herokris.y -= 12;
|
|
38
|
obj_herosusie.x -= 8;
|
|
39
|
obj_herosusie.y -= 6;
|
|
40
|
obj_heroralsei.x -= 4;
|
|
41
|
obj_herosusie.x = xx + 80;
|
|
42
|
obj_herosusie.y = yy + 92;
|
|
43
|
obj_herokris.x = xx + 116;
|
|
44
|
obj_herokris.y = yy + 132;
|
|
45
|
obj_heroralsei.x = xx + 64;
|
|
46
|
obj_heroralsei.y = yy + 145;
|
|
47
|
obj_herosusie.depth = obj_herokris.depth + 1;
|
|
48
|
scr_act_charspritescr_act_charsprite
function scr_act_charsprite(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;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
if (arg2 > 0 && arg3 == 2)
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
if (arg2 > 0 && arg3 > 2)
{
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
__animator.delay = arg3;
}
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("ralsei", spr_ralsei_zoosuit, 0, 0);
|
|
49
|
scr_act_charspritescr_act_charsprite
function scr_act_charsprite(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;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
if (arg2 > 0 && arg3 == 2)
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
if (arg2 > 0 && arg3 > 2)
{
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
__animator.delay = arg3;
}
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("kris", spr_kris_zoosuit, 0, 0);
|
|
50
|
scr_act_charspritescr_act_charsprite
function scr_act_charsprite(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;
}
__returnvalue = _charactsprite[_charnum];
if (i_ex(_charinstance))
{
with (_charinstance)
{
image_alpha = 0;
state = 0;
global.faceaction[myself] = 0;
}
_charactsprite[_charnum] = scr_dark_marker(_charinstance.x, _charinstance.y, arg1);
with (_charactsprite[_charnum])
{
depth = 20 - (__view_get(e__VW.YView, 0) / 40);
scr_oflash();
if (arg2 > 0 && arg3 == 0)
scr_animate(0, 0, arg2);
if (arg2 > 0 && arg3 == 1)
image_speed = arg2;
if (arg2 > 0 && arg3 == 2)
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
if (arg2 > 0 && arg3 > 2)
{
scr_animate(0, sprite_get_number(arg1) - 1, arg2);
__animator.delay = arg3;
}
a = scr_afterimage();
a.hspeed = 2.5;
a.depth = depth + 1;
b = scr_afterimage();
b.image_alpha = 0.6;
b.hspeed = 5;
b.depth = depth + 2;
}
__returnvalue = _charactsprite[_charnum];
}
return __returnvalue;
}
enum e__VW
{
XView,
YView,
WView,
HView,
Angle,
HBorder,
VBorder,
HSpeed,
VSpeed,
Object,
Visible,
XPort,
YPort,
WPort,
HPort,
Camera,
SurfaceID
} ("susie", spr_susie_zoosuit, 0, 0);
|
|
51
|
with (obj_afterimage)
|
|
52
|
instance_destroy();
|
|
53
|
}
|
|
54
|
if (obj_tenna_enemy.phaseturn == 18)
|
|
55
|
{
|
|
56
|
with (obj_actor_tenna)
|
|
57
|
{
|
|
58
|
vspeed = 0;
|
|
59
|
hspeed = 0;
|
|
60
|
gravity = 0;
|
|
61
|
image_xscale = 2;
|
|
62
|
x = xstart;
|
|
63
|
y = ystart;
|
|
64
|
threepartmode = 1;
|
|
65
|
with (obj_tenna_enemy)
|
|
66
|
{
|
|
67
|
minigametransition_con = 0;
|
|
68
|
minigametransition_timer = 0;
|
|
69
|
}
|
|
70
|
}
|
|
71
|
}
|
|
72
|
endattack = false;
|
|
73
|
channelnumber = 1;
|
|
74
|
channeltransitioncount = 0;
|
|
75
|
transitioninit = 0;
|
|
76
|
shaketimer = 0;
|
|
77
|
starttimer = 0;
|
|
78
|
if (obj_tenna_enemy.alreadydidsharpshoot)
|
|
79
|
starttimer = 1;
|
|
80
|
sharpshootlength = 0;
|
|
81
|
invincibility = 0;
|
|
82
|
extra_timer = 0;
|
|
83
|
strength = 200;
|
|
84
|
extravar = 0;
|