Updated escoria-demo-game
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
|
||||
:use
|
||||
|
||||
|
||||
# Show main menu, automatic transitions ENABLED
|
||||
show_menu main true
|
||||
show_menu main
|
||||
|
||||
# wait 2 seconds
|
||||
wait 2
|
||||
|
||||
# Hide main menu, automatic transitions ENABLED
|
||||
hide_menu main true
|
||||
hide_menu main
|
||||
|
||||
:look
|
||||
say player "button main menu"
|
||||
say player "button main menu"
|
||||
|
||||
@@ -1,41 +0,0 @@
|
||||
|
||||
:use
|
||||
|
||||
# This event demonstrates the following:
|
||||
#- fade out to black
|
||||
#- show the pause menu (automatic transition disabled to manage those manually)
|
||||
#- wait 2 seconds
|
||||
#- change scene (automatic transition disabled to manage those manually) to reload this same room
|
||||
|
||||
set_global transition_manual true
|
||||
|
||||
# Fade out to black
|
||||
transition fade_black out
|
||||
wait 2
|
||||
|
||||
# Show main menu, automatic transition DISABLED
|
||||
show_menu pause
|
||||
|
||||
# Showing menu
|
||||
transition shards in
|
||||
|
||||
# Wait 2 seconds on menu
|
||||
wait 2
|
||||
|
||||
# Transition out before hiding menu
|
||||
transition fade_black out
|
||||
|
||||
# Hide the menu
|
||||
hide_menu pause
|
||||
wait 1
|
||||
|
||||
# Do NOT transition IN as this transition will be managed by the room's :setup event!
|
||||
# If you transition IN here instead of room's :setup event, you will show the previous room
|
||||
|
||||
# Change scene to same scene, disabled automatic transition
|
||||
change_scene res://game/rooms/room14/room14.tscn false
|
||||
|
||||
# Do not transition here either, as change_scene ends the execution of this script
|
||||
|
||||
:look
|
||||
say player "Button change scene"
|
||||
@@ -1,30 +0,0 @@
|
||||
|
||||
:use
|
||||
|
||||
# This event demonstrates the following:
|
||||
#- fade out to black
|
||||
#- show the pause menu (automatic transition disabled to manage those manually)
|
||||
#- wait 2 seconds
|
||||
#- change scene (automatic transition enabled) to reload this same room
|
||||
|
||||
set_global transition_manual false
|
||||
|
||||
# Fade out to black
|
||||
transition fade_black out
|
||||
wait 2
|
||||
|
||||
# Show main menu, automatic transition DISABLED
|
||||
show_menu pause
|
||||
|
||||
# Showing menu
|
||||
transition shards in
|
||||
|
||||
# Wait 2 seconds on menu
|
||||
wait 2
|
||||
|
||||
# Change scene to same scene, enabled automatic transition
|
||||
change_scene res://game/rooms/room14/room14.tscn
|
||||
|
||||
|
||||
:look
|
||||
say player "Button change scene auto"
|
||||
@@ -1,16 +1,12 @@
|
||||
|
||||
:use
|
||||
|
||||
# Show pause menu, automatic transition are disabled by default
|
||||
# So we can manage them manually using `transition` ESC command
|
||||
# Show pause menu
|
||||
show_menu pause
|
||||
|
||||
# wait 2 seconds
|
||||
# Wait 2 seconds (this will run AFTER the pause menu is closed since the pause
|
||||
# menu also pauses the game)
|
||||
wait 2
|
||||
|
||||
# Hide pause menu, automatic transition are disabled by default
|
||||
# So we can manage them manually using `transition` ESC command
|
||||
hide_menu pause
|
||||
|
||||
:look
|
||||
say player "Button pause menu"
|
||||
say player "Button pause menu"
|
||||
|
||||
@@ -44,4 +44,4 @@
|
||||
queue_event worker moveworker _queuedemo true
|
||||
queue_event worker2 moveworker2 _queuedemo
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user