|
1
|
function scr_board_photosparklescr_board_photosparkle
function scr_board_photosparkle()
{
var _lifetime = 8;
var imgspeed = 0.5;
if (argument_count > 0)
_lifetime = argument0;
var sparkle = scr_board_marker(x, y, spr_board_sparkle, imgspeed, depth - 1, 2);
with (sparkle)
scr_lerpvar("x", x, x + other.sprite_width, _lifetime);
scr_doom(sparkle, _lifetime);
sparkle = scr_board_marker(x + sprite_width, y + sprite_height, spr_board_sparkle, imgspeed, depth - 1, 2);
with (sparkle)
scr_lerpvar("x", x, x - other.sprite_width, _lifetime);
scr_doom(sparkle, _lifetime);
sparkle = scr_board_marker(x, y + sprite_height, spr_board_sparkle, imgspeed, depth - 1, 2);
with (sparkle)
scr_lerpvar("y", y, y - other.sprite_height, _lifetime);
scr_doom(sparkle, _lifetime);
sparkle = scr_board_marker(x + sprite_width, y, spr_board_sparkle, imgspeed, depth - 1, 2);
with (sparkle)
scr_lerpvar("y", y, y + other.sprite_height, _lifetime);
scr_doom(sparkle, _lifetime);
var _photox = 0;
var _photoy = 0;
with (obj_board_playercamera)
{
_photox = (x + ((camwidth / 2) * 32)) - 16;
_photoy = (y + ((camheight / 2) * 32)) - 16;
}
var star = scr_board_marker(centerx(id), centery(id), spr_board_sparkle, imgspeed, obj_board_playercamera.depth + 1, 2, 0);
var starmovetime = 30;
var starpausetime = 7;
with (star)
{
scr_script_delayed(scr_lerpvar, 8, "x", x, _photox + 16, starmovetime, -1, "out");
scr_script_delayed(scr_lerpvar, 8, "y", y, _photoy + 16, starmovetime, -1, "out");
scr_doom(id, starmovetime + 8 + starpausetime);
}
} ()
|
|
2
|
{
|
|
3
|
var _lifetime = 8;
|
|
4
|
var imgspeed = 0.5;
|
|
5
|
if (argument_count > 0)
|
|
6
|
_lifetime = argument0;
|
|
7
|
var sparkle = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (x, y, spr_board_sparkle, imgspeed, depth - 1, 2);
|
|
8
|
with (sparkle)
|
|
9
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
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_lerpvar_respect()
{
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]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, x + other.sprite_width, _lifetime);
|
|
10
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (sparkle, _lifetime);
|
|
11
|
sparkle = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (x + sprite_width, y + sprite_height, spr_board_sparkle, imgspeed, depth - 1, 2);
|
|
12
|
with (sparkle)
|
|
13
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
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_lerpvar_respect()
{
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]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("x", x, x - other.sprite_width, _lifetime);
|
|
14
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (sparkle, _lifetime);
|
|
15
|
sparkle = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (x, y + sprite_height, spr_board_sparkle, imgspeed, depth - 1, 2);
|
|
16
|
with (sparkle)
|
|
17
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
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_lerpvar_respect()
{
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]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, y - other.sprite_height, _lifetime);
|
|
18
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (sparkle, _lifetime);
|
|
19
|
sparkle = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (x + sprite_width, y, spr_board_sparkle, imgspeed, depth - 1, 2);
|
|
20
|
with (sparkle)
|
|
21
|
scr_lerpvarscr_lerpvar
function scr_lerpvar()
{
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_lerpvar_respect()
{
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]);
___lerpvar.respectglobalinteract = true;
return ___lerpvar;
} ("y", y, y + other.sprite_height, _lifetime);
|
|
22
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (sparkle, _lifetime);
|
|
23
|
var _photox = 0;
|
|
24
|
var _photoy = 0;
|
|
25
|
with (obj_board_playercamera)
|
|
26
|
{
|
|
27
|
_photox = (x + ((camwidth / 2) * 32)) - 16;
|
|
28
|
_photoy = (y + ((camheight / 2) * 32)) - 16;
|
|
29
|
}
|
|
30
|
var star = scr_board_markerscr_board_marker
function scr_board_marker()
{
var _thismarker = instance_create(argument0, argument1, obj_board_marker);
_thismarker.sprite_index = argument2;
_thismarker.image_xscale = 2;
_thismarker.image_yscale = 2;
if (argument_count >= 4)
_thismarker.image_speed = argument3;
if (argument_count >= 5)
{
if (argument4 != -1)
_thismarker.depth = argument4;
}
if (argument_count >= 6)
_thismarker.image_xscale = argument5;
if (argument_count >= 6)
_thismarker.image_yscale = argument5;
if (argument_count >= 7)
_thismarker.animateonce = argument6;
return _thismarker;
} (centerx(id), centery(id), spr_board_sparkle, imgspeed, obj_board_playercamera.depth + 1, 2, 0);
|
|
31
|
var starmovetime = 30;
|
|
32
|
var starpausetime = 7;
|
|
33
|
with (star)
|
|
34
|
{
|
|
35
|
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;
} (scr_lerpvar, 8, "x", x, _photox + 16, starmovetime, -1, "out");
|
|
36
|
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;
} (scr_lerpvar, 8, "y", y, _photoy + 16, starmovetime, -1, "out");
|
|
37
|
scr_doomscr_doom
function scr_doom(arg0, arg1)
{
with (instance_create_depth(0, 0, 0, obj_doom))
{
alarm[0]
target = arg0;
}
} (id, starmovetime + 8 + starpausetime);
|
|
38
|
}
|
|
39
|
}
|