Continued camera effects adding (zoom, shift)

Added trigger behaviour to ESCItem and removed ESCTriggerZone.
This commit is contained in:
Julian Murgia
2021-01-18 23:32:38 +01:00
parent ff56816205
commit 6890d927f5
24 changed files with 581 additions and 246 deletions

View File

@@ -0,0 +1,7 @@
:look
say player "That button makes the camera target me."
:use
camera_set_limits 0
camera_set_target 0 player

View File

@@ -0,0 +1,7 @@
:look
say player "That button triggers a camera push effect."
:use
camera_push r7_object2 1 LINEAR
wait 3
camera_push player 1 LINEAR

View File

@@ -0,0 +1,7 @@
:look
say player "That button triggers a camera shift effect."
:use
camera_shift 700 0 5 LINEAR
wait 1

View File

@@ -0,0 +1,10 @@
:look
say player "That button triggers a camera zoom effect."
:use
camera_set_zoom 1.3 2
wait 3
camera_set_zoom 0.5 2
wait 3
camera_set_zoom 1 0

View File

@@ -1,4 +1,8 @@
# :SETUP is called EVERY TIME the room is loaded
# :READY is called only the FIRST TIME the room is loaded
:setup
set_state r7_button_push button_repaired
> [eq ESC_LAST_SCENE room6]
teleport player r7_l_exit
# Set player look right
@@ -8,13 +12,13 @@
teleport player player_start
stop
:ready
camera_push player 0 LINEAR
camera_push r7_object2 1 LINEAR
wait 3
camera_push player 1 LINEAR
#camera_push player 0 LINEAR
#camera_push r7_object2 1 LINEAR
#wait 3
#camera_push player 1 LINEAR
#camera_set_drag_margin_enabled bool bool
#camera_set_pos real int int

View File

@@ -0,0 +1,4 @@
:trigger_in
set_state r7_light_left red
:trigger_out

View File

@@ -0,0 +1,5 @@
:trigger_in
set_state r7_light_right green
:trigger_out
set_state r7_light_right red