Fixed variable name bug in resource reference.
This commit is contained in:
parent
1725b8b754
commit
936bcbc5e3
2 changed files with 2 additions and 2 deletions
|
|
@ -8,7 +8,7 @@ script = ExtResource("2_by0nb")
|
|||
shot_name = "Stock Shot"
|
||||
bullet_scene = ExtResource("1_by0nb")
|
||||
speed = 355
|
||||
projectiles = 3
|
||||
projectiles = 5
|
||||
spacing = 32.0
|
||||
origin = -25
|
||||
stagger_offset = 0.75
|
||||
|
|
|
|||
|
|
@ -30,7 +30,7 @@ func shoot():
|
|||
var time_offset: float = index_from_center * stagger_offset
|
||||
|
||||
# Calculate horizontal offset for symmetrical spread (left = negative, right = positive)
|
||||
horizontal_offset = index_from_center * weapon_data.spacing_horizontal
|
||||
horizontal_offset = index_from_center * weapon_data.horizontal_offset
|
||||
|
||||
# Calculate vertical offset from center point (creates symmetrical vertical spread)
|
||||
# Bullets on either side of center get offset by distance_from_center * spacing / 2
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue