feat: Add global interpolation for say command (#562)

Co-authored-by: Balloonpopper <balloonpopper@git.com>
This commit is contained in:
balloonpopper
2022-04-05 16:02:17 +10:00
committed by GitHub
parent 9cc06679c9
commit 167e06bfd5
4 changed files with 36 additions and 1 deletions

View File

@@ -1,2 +1,7 @@
:exit_scene
change_scene "res://game/rooms/room03/room03.tscn"
:look
# Test globals in say command
inc_global r4_door_look_count 1
say player "You have looked at the doorway {r4_door_look_count} times"

View File

@@ -1,4 +1,5 @@
:setup
set_global r4_door_look_count 0
> [eq ESC_LAST_SCENE room3]
teleport player l_exit

View File

@@ -131,7 +131,7 @@ animations = null
polygon = PoolVector2Array( 22, 633, 21, 328, 143, 276, 143, 565 )
[node name="Position2D" type="Position2D" parent="Hotspots/l_door"]
position = Vector2( 80, 589 )
position = Vector2( 92, 603 )
script = ExtResource( 9 )
[node name="r_door" type="Area2D" parent="Hotspots"]