mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-12-05 19:20:19 -08:00
fixed lakitu throwing enemies causing their direction to be 0
This commit is contained in:
parent
d8003af13d
commit
ca050380a2
1 changed files with 1 additions and 1 deletions
|
|
@ -82,7 +82,7 @@ func throw_spiny() -> void:
|
|||
node.velocity = Vector2(0, -150)
|
||||
if fixed_throw:
|
||||
node.velocity.x = 50 * (sign(player.global_position.x - global_position.x))
|
||||
node.set("direction", sign(node.velocity.x))
|
||||
node.set("direction", sign(node.velocity.x))
|
||||
add_sibling(node)
|
||||
if Settings.file.audio.extra_sfx == 1:
|
||||
AudioManager.play_sfx("lakitu_throw", global_position)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue