meat_madness_redux/godot/player/HighSpeedFOV.gd

11 lines
298 B
GDScript

extends Node
onready var OnFootPhysics = get_node("../../../../../OnFootPhysics")
onready var Floor = get_node("../../../../../OnFootPhysics/Floor")
func _process(_delta):
if OnFootPhysics.velocity.y >= 0.0 or Floor.is_on_floor:
$FOVAnimation.play("RESET")
return
$FOVAnimation.play("fov")