Event flags implementation (#382)
* Added event flags * Added transition ESC command * Also edited .gitignore to ignore .translation files * docs: Automatic update of API docs Co-authored-by: StraToN <StraToN@users.noreply.github.com>
This commit is contained in:
5
game/rooms/room12/esc/left_exit.esc
Normal file
5
game/rooms/room12/esc/left_exit.esc
Normal file
@@ -0,0 +1,5 @@
|
||||
:exit_scene
|
||||
set_sound_state bg_sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
change_scene "res://game/rooms/room11/room11.tscn"
|
||||
|
||||
|
||||
3
game/rooms/room12/esc/right_exit.esc
Normal file
3
game/rooms/room12/esc/right_exit.esc
Normal file
@@ -0,0 +1,3 @@
|
||||
:exit_scene
|
||||
#set_sound_state bg_sound res://game/sfx/sounds/doorOpen_2.ogg false
|
||||
#change_scene "res://game/rooms/room13/room13.tscn"
|
||||
21
game/rooms/room12/esc/room12.esc
Normal file
21
game/rooms/room12/esc/room12.esc
Normal file
@@ -0,0 +1,21 @@
|
||||
|
||||
:setup
|
||||
|
||||
> [eq ESC_LAST_SCENE room11]
|
||||
teleport player r12_l_exit
|
||||
# Set player look right
|
||||
set_angle player 180
|
||||
stop
|
||||
> [eq ESC_LAST_SCENE room13]
|
||||
teleport player r12_r_exit
|
||||
# Set player look left
|
||||
set_angle player 270
|
||||
stop
|
||||
> [!last_scene]
|
||||
teleport player player_start
|
||||
stop
|
||||
|
||||
|
||||
:ready
|
||||
|
||||
transition fade_white in
|
||||
Reference in New Issue
Block a user