meat_madness_redux/godot/player/HighSpeedFOV.gd

11 lines
298 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")
func _process(_delta):
2022-12-11 17:02:57 -07:00
if OnFootPhysics.velocity.y >= 0.0 or Floor.is_on_floor:
$FOVAnimation.play("RESET")
return
$FOVAnimation.play("fov")