1 |
if (obj_pl.y < 300) |
2 |
{ |
3 |
with (obj_radio) |
4 |
audio_sound_pitch(bgm, 1) |
5 |
obj_pl.plspd = 3 |
6 |
fadealpha = 0 |
7 |
} |
8 |
if (obj_pl.y > 300) |
9 |
{ |
10 |
fadealpha = (obj_pl.y - 300) * 0.002 |
11 |
obj_pl.plspd = 3 - (obj_pl.y - 300) * 0.004 |
12 |
var pitch = 1 - (obj_pl.y - 300) * 0.001 |
13 |
with (obj_radio) |
14 |
audio_sound_pitch(bgm, pitch) |
15 |
} |
16 |
if (fadealpha >= 1 && waiter == 0) |
17 |
{ |
18 |
fadealpha = 1 |
19 |
scr_cutscene_startscr_cutscene_startfunction scr_cutscene_start() //gml_Script_scr_cutscene_start
{
global.cutscene = true
obj_pl.state = gml_Script_scr_frozen_state
obj_pl.image_index = 0
obj_pl.image_speed = 0
} () |
20 |
alarm[0] = 60alarm[0]global.battle_enemy_name = "decibat"
global.exclamation_mark_type = "nothing"
global.battling_enemy = false
global.battling_boss = true
global.battle_start = true
global.current_room_overworld = room_get_name(room)
audio_stop_all()
room_goto( rm_battle Battle room) |
21 |
waiter = 1 |
22 |
} |