We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e8397e8 commit 9203762Copy full SHA for 9203762
src/Game/Enemies/Bee/bee.gd
@@ -34,7 +34,7 @@ func _on_player_tracked() -> void:
34
if not is_chasing:
35
is_chasing = true
36
37
- # Calculate the position of where to fly and the flight time of the bat
+ # Calculate the bee's target position and flight time.
38
var initial_pos: Vector2 = global_position
39
var desired_pos: Vector2 = Vector2(Globals.player.global_position.x, Globals.player.global_position.y)
40
var fly_time: float = clampf((desired_pos.y - initial_pos.y)/2000, 1, 1.5)
0 commit comments