mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
fixed lakitu throwing enemies causing their direction to be 0
This commit is contained in:
@@ -82,7 +82,7 @@ func throw_spiny() -> void:
|
|||||||
node.velocity = Vector2(0, -150)
|
node.velocity = Vector2(0, -150)
|
||||||
if fixed_throw:
|
if fixed_throw:
|
||||||
node.velocity.x = 50 * (sign(player.global_position.x - global_position.x))
|
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)
|
add_sibling(node)
|
||||||
if Settings.file.audio.extra_sfx == 1:
|
if Settings.file.audio.extra_sfx == 1:
|
||||||
AudioManager.play_sfx("lakitu_throw", global_position)
|
AudioManager.play_sfx("lakitu_throw", global_position)
|
||||||
|
Reference in New Issue
Block a user