mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-27 01:40:57 +00:00
Fix Original Lakitu throw not going straight up (#663)
This commit is contained in:
committed by
GitHub
parent
fcdf729e23
commit
9f19571475
@@ -9,9 +9,13 @@ func _physics_process(delta: float) -> void:
|
||||
|
||||
func handle_movement(_delta: float) -> void:
|
||||
if in_egg:
|
||||
$BasicEnemyMovement.move_speed = 0
|
||||
$BasicEnemyMovement.second_quest_speed = 0
|
||||
if is_on_floor():
|
||||
var player = get_tree().get_first_node_in_group("Players")
|
||||
direction = sign(player.global_position.x - global_position.x)
|
||||
$BasicEnemyMovement.move_speed = 32
|
||||
$BasicEnemyMovement.second_quest_speed = 36
|
||||
in_egg = false
|
||||
$Sprite.play("Egg")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user