forked from team-sg/hero-mark-2
fix moving platforms doing scale twice after game over (fixes #41)
This commit is contained in:
parent
49e2a016f1
commit
619cf807f8
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue