working on rat

This commit is contained in:
derek
2025-05-12 16:43:25 -05:00
parent 4c98bca83b
commit ed3c47e9cf
10 changed files with 119 additions and 92 deletions

12
scripts/rat_walk.gd Normal file
View File

@@ -0,0 +1,12 @@
extends CharacterState
class_name RatWalk
func Update(delta):
get_new_waypoint()
move_to_nav_point(delta)
func get_new_waypoint():
if character.end_hole:
move_target = character.end_hole.global_position
character.nav_agent.set_target_position(move_target)