|
1
|
_timer = 0;
|
|
2
|
_timer_interval = 60;
|
|
3
|
_after_images = [];
|
|
4
|
_rainbow_list = flrainbow();
|
|
5
|
_rainbow_index = 0;
|
|
6
|
_target_actor = -4;
|
|
7
|
_mode = -1;
|
|
8
|
image_speed = 0;
|
|
9
|
image_xscale = 2;
|
|
10
|
image_yscale = 2;
|
|
11
|
|
|
12
|
init = function(arg0)
|
|
13
|
{
|
|
14
|
_target_actor = arg0;
|
|
15
|
};
|
|
16
|
|
|
17
|
set_mode = function(arg0)
|
|
18
|
{
|
|
19
|
_mode = arg0;
|
|
20
|
if (_mode == 0)
|
|
21
|
{
|
|
22
|
_timer = 0;
|
|
23
|
sprite_index = spr_flowery_powering_up_kneel;
|
|
24
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_speed", 0, 0.6, 60);
|
|
25
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("_timer_interval", 30, 10, 60);
|
|
26
|
}
|
|
27
|
else if (_mode == 1)
|
|
28
|
{
|
|
29
|
sprite_index = spr_flowery_powering_up_finish;
|
|
30
|
image_speed = 0;
|
|
31
|
image_index = 0;
|
|
32
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
var _id = self;
if (!is_struct(self))
_id = id;
if (argument_count < 6)
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpvar_instance(_id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
}
function scr_lerpcol()
{
if (argument_count < 6)
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3]);
else
___lerpvar = scr_lerpcol_instance(id, argument[0], argument[1], argument[2], argument[3], argument[4], argument[5]);
return ___lerpvar;
} ("image_index", 0, 4, 20, 3, "in");
|
|
33
|
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);
} (function()
|
|
34
|
{
|
|
35
|
snd_play(snd_weaponpull);
|
|
36
|
for (var i = 0; i < 12; i++)
|
|
37
|
{
|
|
38
|
var _sparkle = instance_create(x - 20, y - 70, obj_afterimage);
|
|
39
|
_sparkle.direction = (i * 30) + random_range(-13, 13);
|
|
40
|
_sparkle.image_index = irandom(3);
|
|
41
|
_sparkle.sprite_index = spr_bellsparkle;
|
|
42
|
_sparkle.image_angle = choose(0, 90);
|
|
43
|
_sparkle.speed = 5;
|
|
44
|
_sparkle.friction = 0.2;
|
|
45
|
_sparkle.image_alpha = 1;
|
|
46
|
_sparkle.image_xscale = 2;
|
|
47
|
_sparkle.image_yscale = 2;
|
|
48
|
_sparkle.image_speed = random_range(0.25, 0.5);
|
|
49
|
_sparkle.depth = depth - 2;
|
|
50
|
}
|
|
51
|
}, 21);
|
|
52
|
}
|
|
53
|
};
|