mirror of
https://github.com/JHDev2006/Super-Mario-Bros.-Remastered-Public.git
synced 2025-10-22 15:38:14 +00:00
Fixed piranha plant offsets
This commit is contained in:
@@ -187,7 +187,7 @@ script/source = "extends Node
|
||||
@onready var starting_position: Vector2 = owner.global_position
|
||||
|
||||
func _process(_delta: float) -> void:
|
||||
const OFFSETS = [Vector2.ZERO, Vector2.ZERO, Vector2(-16, 0), Vector2(16, 0)]
|
||||
const OFFSETS = [Vector2.ZERO, Vector2(0, -16), Vector2(-16, 0), Vector2.ZERO]
|
||||
if Global.level_editor != null:
|
||||
owner.global_rotation_degrees = [0, 180, 90, -90][owner.plant_direction]
|
||||
var offset = OFFSETS[owner.plant_direction]
|
||||
|
Reference in New Issue
Block a user