meat_madness_redux/godot/player/HighSpeedFOV.gd

15 lines
363 B
GDScript

extends Node
onready var OnFootPhysics = get_node("../../../../../OnFootPhysics")
onready var Floor = get_node("../../../../../OnFootPhysics/Floor")
var has_played = false
func _process(_delta):
if OnFootPhysics.is_falling_terminally:
if has_played:
$FOVAnimation.play("fov")
has_played = true
return
has_played = false
$FOVAnimation.play("RESET")