fix moving platforms doing scale twice after game over (fixes #41)

This commit is contained in:
Haze Weathers 2023-02-09 11:39:33 -05:00
parent 49e2a016f1
commit 619cf807f8

View file

@ -14,8 +14,7 @@ onready var hitbox = $CollisionShape2D
func _ready():
sprite.set_region_rect(Rect2(0,0,8 * scale.x,4))
hitbox.scale.x = scale.x
scale.x = 1
sprite.scale.x /= scale.x
left_up_boundry *= 8
right_down_boundry *= 8
#Better offset for vertical platforms