level 4 a bowser
This commit is contained in:
+6
-2
@@ -76,7 +76,7 @@ func _process(delta):
|
||||
# set camera
|
||||
if position.y <= 32:
|
||||
camera_2d.limit_bottom = 32
|
||||
camera_2d.limit_top = -1000000
|
||||
camera_2d.limit_top = -1000
|
||||
else:
|
||||
camera_2d.limit_bottom = 272
|
||||
camera_2d.limit_top = 32
|
||||
@@ -163,7 +163,8 @@ func _physics_process(delta):
|
||||
func grow():
|
||||
if not is_big:
|
||||
is_big = true
|
||||
position.y -= 20
|
||||
if is_on_floor():
|
||||
position.y -= 20
|
||||
collision_shape_2d.shape.height = 31
|
||||
pipedetector_ground.position.y += 8
|
||||
|
||||
@@ -175,6 +176,9 @@ func flower():
|
||||
is_flower = true
|
||||
|
||||
func shrink():
|
||||
if on_pause:
|
||||
return
|
||||
|
||||
if is_flower:
|
||||
is_flower = false
|
||||
shrink_sound.play()
|
||||
|
||||
Reference in New Issue
Block a user