A bunch of refinements on spacing and timing!
This commit is contained in:
parent
48a2ba3ddb
commit
c91f8ab31d
2 changed files with 4 additions and 3 deletions
|
|
@ -36,7 +36,7 @@ func shoot():
|
|||
var vertical_offset: float = (distance_from_center * weapon_data.origin * -1) / 2
|
||||
|
||||
# Final position combines symmetrical horizontal spread with symmetrical vertical spacing
|
||||
bullet.position = player.position + Vector2(bullet_horizontal_offset, weapon_data.origin + vertical_offset)
|
||||
bullet.position = player.position + Vector2(bullet_horizontal_offset, weapon_data.origin + (vertical_offset + weapon_data.origin - total_projectiles))
|
||||
|
||||
# Set timing properties on the bullet
|
||||
bullet.time_offset = time_offset
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue