Attempting to set up equidistant bullets based on player movement.
This commit is contained in:
parent
142bf87eca
commit
07c63f4122
4 changed files with 25 additions and 4 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue