mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-26 17:30:54 +00:00
added github contributors to credits and fixed up a quick sprite offset with hammer bros
This commit is contained in:
@@ -20,6 +20,7 @@ func _ready() -> void:
|
||||
func _process(delta: float) -> void:
|
||||
target_player = get_tree().get_first_node_in_group("Players")
|
||||
direction = sign(target_player.global_position.x - global_position.x)
|
||||
|
||||
$MovementJoint/Sprite.scale.x = -direction
|
||||
if $TrackJoint.is_attached: $MovementAnimations.play("RESET")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user