add curtains to 1-stage
This commit is contained in:
parent
47abd1306e
commit
d9c92ccb98
11 changed files with 618 additions and 4 deletions
17
Scripts/OneWayController.gd
Normal file
17
Scripts/OneWayController.gd
Normal file
|
@ -0,0 +1,17 @@
|
|||
extends Node3D
|
||||
|
||||
var animation_player
|
||||
|
||||
var last_anim_name = ""
|
||||
|
||||
func _ready():
|
||||
animation_player = $AnimationPlayer
|
||||
|
||||
func _movement_in(movement, rate):
|
||||
if (movement != last_anim_name):
|
||||
animation_player.speed_scale = rate
|
||||
animation_player.play(movement)
|
||||
last_anim_name = movement
|
||||
|
||||
func _movement_out(_movement, _rate):
|
||||
pass # lol pranked
|
Loading…
Add table
Add a link
Reference in a new issue