1 |
timer = 0; |
2 |
timermax = 180; |
3 |
playerinput = 0; |
4 |
playerinputtimer = 0; |
5 |
actcon = 0; |
6 |
krisgooffscreen = 0; |
7 |
susiegooffscreen = 0; |
8 |
ralseigooffscreen = 0; |
9 |
buttonspressed = 0; |
10 |
bumpmercy = 0; |
11 |
mykey[0] = 90; |
12 |
mykey[1] = 88; |
13 |
mykey[2] = 67; |
14 |
BerdlyCoaster = instance_create(camerax() + 470, cameray() + 203, o_coaster_berdly); |
15 |
if (instance_exists(obj_ch2_scene11a)) |
16 |
o_coaster_berdly.x = obj_ch2_scene11a.coaster_berdly.x + 16; |
17 |
for (i = 0; i < 3; i += 1) |
18 |
{ |
19 |
HeroCoaster[i] = instance_create((camerax() + 100) - (i * 20), cameray() + 149 + (60 * i), o_coaster_hero); |
20 |
HeroCoaster[i].HeroID = i; |
21 |
HeroCoaster[i].image_index = i; |
22 |
HeroCoaster[i].depth = HeroCoaster[i].y * -100; |
23 |
HeroCoaster[i].siner = 0; |
24 |
HeroCoaster[i].mykey = mykey[i]; |
25 |
with (HeroCoaster[i]) |
26 |
{ |
27 |
back = instance_create(x, y, o_coaster_hero_back); |
28 |
back.image_index = HeroID; |
29 |
back.parentid = id; |
30 |
} |
31 |
yspot[i] = HeroCoaster[i].y; |
32 |
BerdlyCoaster.yspot[i] = HeroCoaster[i].y; |
33 |
obj_herokris.x = camerax() - 200; |
34 |
if (instance_exists(obj_herosusie)) |
35 |
obj_herosusie.x = camerax() - 200; |
36 |
if (instance_exists(obj_heroralsei)) |
37 |
obj_heroralsei.x = camerax() - 200; |
38 |
if (HeroCoaster[i].HeroID == 0) |
39 |
HeroCoaster[i].sprite_index = spr_krisb_idle; |
40 |
if (HeroCoaster[i].HeroID == 1) |
41 |
HeroCoaster[i].sprite_index = spr_susieb_idle; |
42 |
if (HeroCoaster[i].HeroID == 2) |
43 |
HeroCoaster[i].sprite_index = spr_ralsei_idle; |
44 |
if (instance_exists(obj_ch2_scene11a)) |
45 |
{ |
46 |
if (i == 0) |
47 |
{ |
48 |
HeroCoaster[i].x = obj_ch2_scene11a.coaster_kris.x - 22; |
49 |
HeroCoaster[i].sprite_index = spr_krisb_attack; |
50 |
} |
51 |
if (i == 1) |
52 |
{ |
53 |
HeroCoaster[i].x = obj_ch2_scene11a.coaster_susie.x - 22; |
54 |
HeroCoaster[i].sprite_index = spr_susie_attack; |
55 |
} |
56 |
if (i == 2) |
57 |
{ |
58 |
HeroCoaster[i].x = obj_ch2_scene11a.coaster_ralsei.x - 22; |
59 |
HeroCoaster[i].sprite_index = spr_ralsei_battleintro; |
60 |
} |
61 |
} |
62 |
} |
63 |
jamatime = 90; |
64 |
jamatimer = 0; |
65 |
littime = 120; |
66 |
littimer = 0; |