meat_madness_redux/godot/player/HighSpeedFOV.gd

15 lines
367 B
GDScript3
Raw Normal View History

extends Node
onready var OnFootPhysics = get_node("../../../../../OnFootPhysics")
2022-12-11 17:02:57 -07:00
onready var Floor = get_node("../../../../../OnFootPhysics/Floor")
2022-12-11 18:07:05 -07:00
var has_played = false
func _process(_delta):
2022-12-11 18:07:05 -07:00
if OnFootPhysics.is_falling_terminally:
2023-01-03 20:39:51 -07:00
if not has_played:
2022-12-11 18:07:05 -07:00
$FOVAnimation.play("fov")
has_played = true
2022-12-11 17:02:57 -07:00
return
2022-12-11 18:07:05 -07:00
has_played = false
$FOVAnimation.play("RESET")