grass cleanup, camera cleanup, animation test
This commit is contained in:
parent
561135b63a
commit
b12c193636
13 changed files with 35136 additions and 44782 deletions
2
enemy.gd
2
enemy.gd
|
|
@ -117,8 +117,6 @@ func _dir_to_target():
|
|||
|
||||
func _physics_process(delta : float):
|
||||
var target_dist = navigation_agent.target_position.distance_to(global_position)
|
||||
#if (target_dist > 300):
|
||||
#charge = 0
|
||||
if (target_dist > aproach_range):
|
||||
velocity += global_position.direction_to(_dir_to_target()) * movement_speed
|
||||
sprite.flip_h = velocity.x > 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue