Files
gymkhana-actions/game/rooms/room02/esc/room02_bridge.esc
Julian Murgia c86b802cbb Add show_menu and hide_menu ESC commands
Fixes godot-escoria/escoria-issues#48
Fix: tween was stopped_all before starting


Fix: reload locale from settings in ESCGame

Since main menu and pause menu are now loaded from ESCGame and not from escoria.gd, this must be done here.
Fix: small crash in load game

But save and load are broken at the moment...
Fix: check save and load after main menu changes


Required fixes


Fix: manage the game scene better in show and hide_menu


Enh: transition back in to the previous room if there was one


Fix a bug occurring where change_scene awaits forever for setup to end


Reworked change_scene and esc_room implementation to avoid yielding


Added a controller variable to allow new event run in events_manager


Don't empty the events queue if the running_event was interrupted


Fixed transitions and automatic transitions in change_scene

Added trace log level (for esc_compiler in particular)
Fixed various bugs in ESC scripts
Fix a bug where exit_scene happened multiple times where fast walking

Needed to clear the event queue
Fixes ready event was run because BYPASS_LAST_SCENE wrongly set


Inverted parameter "disable_automatic_transitions"

for change_scene, hide_menu, show_menu commands
Fix broken sched_event


Fixes as requested in PR
2021-11-11 22:20:58 +01:00

42 lines
885 B
Plaintext

# THIS ROOMS FEATURES AN OPEN BRIDGE WITH A BUTTON TO USE IN ORDER TO OPEN
:setup
> [r2_bridge_closed]
# Make set_state IMMEDIATE to reach the final frame immediately
set_state r2_bridge bridge_close true
enable_terrain bridge_closed
set_interactive r2_right_platform false
> [eq ESC_LAST_SCENE room1]
teleport player r2_l_exit
# Set player look left
set_angle player 180
stop
> [eq ESC_LAST_SCENE room3]
teleport player r2_r_exit
# Set player look left
set_angle player 270
# Activate bridge, else player is stuck
#set_state r2_bridge bridge_close
#enable_terrain bridge_closed
#set_global r2_bridge_closed true
set_interactive r2_right_platform false
#set_interactive r2_bridge false
stop
:ready
# DEBUG
#set_state r2_bridge bridge_close
#enable_terrain bridge_closed
#set_global bridge_closed true
#set_interactive r2_right_platform false
## /DEBUG