Attempting to set up equidistant bullets based on player movement.

This commit is contained in:
Henry 2026-03-21 18:30:26 +00:00
parent 142bf87eca
commit 07c63f4122
4 changed files with 25 additions and 4 deletions

View file

@ -6,4 +6,6 @@ extends Area2D
func _process(delta):
position.y += shot_data.speed * delta
#position.y += shot_data.speed * delta #This works normally
var player_position = get_node("../Player").position
position.y += player_position.y * shot_data.speed * delta