|
1
|
function scr_battle_sprite_actflashscr_battle_sprite_actflash
function scr_battle_sprite_actflash(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)
{
scr_oflash();
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;
}
}
} (arg0)
|
|
2
|
{
|
|
3
|
_charactor = arg0;
|
|
4
|
_charinstance = obj_herokris;
|
|
5
|
if (_charactor == "noelle")
|
|
6
|
{
|
|
7
|
_charinstance = obj_heronoelle;
|
|
8
|
_charnum = 4;
|
|
9
|
}
|
|
10
|
if (_charactor == "ralsei")
|
|
11
|
{
|
|
12
|
_charinstance = obj_heroralsei;
|
|
13
|
_charnum = 3;
|
|
14
|
}
|
|
15
|
if (_charactor == "susie")
|
|
16
|
{
|
|
17
|
_charinstance = obj_herosusie;
|
|
18
|
_charnum = 2;
|
|
19
|
}
|
|
20
|
if (_charactor == "kris")
|
|
21
|
{
|
|
22
|
_charinstance = obj_herokris;
|
|
23
|
_charnum = 1;
|
|
24
|
}
|
|
25
|
if (instance_exists(_charinstance))
|
|
26
|
{
|
|
27
|
with (_charinstance)
|
|
28
|
{
|
|
29
|
scr_oflashscr_oflash
function scr_oflash()
{
_oflash = instance_create(x, y, obj_oflash);
_oflash.image_xscale = image_xscale;
_oflash.image_speed = 0;
_oflash.image_index = image_index;
_oflash.image_yscale = image_yscale;
_oflash.sprite_index = sprite_index;
_oflash.depth = depth - 1;
_oflash.target = id;
return _oflash;
} ();
|
|
30
|
a = scr_afterimagescr_afterimage
function scr_afterimage()
{
afterimage = instance_create(x, y, obj_afterimage);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
return afterimage;
} ();
|
|
31
|
a.hspeed = 2.5;
|
|
32
|
a.depth = depth + 1;
|
|
33
|
b = scr_afterimagescr_afterimage
function scr_afterimage()
{
afterimage = instance_create(x, y, obj_afterimage);
afterimage.sprite_index = sprite_index;
afterimage.image_index = image_index;
afterimage.image_blend = image_blend;
afterimage.image_speed = 0;
afterimage.depth = depth;
afterimage.image_xscale = image_xscale;
afterimage.image_yscale = image_yscale;
afterimage.image_angle = image_angle;
return afterimage;
} ();
|
|
34
|
b.image_alpha = 0.6;
|
|
35
|
b.hspeed = 5;
|
|
36
|
b.depth = depth + 2;
|
|
37
|
}
|
|
38
|
}
|
|
39
|
}
|