Tweaked floaty area
This commit is contained in:
@@ -3,8 +3,8 @@ extends Area2D
|
||||
func _on_body_entered(body) -> void:
|
||||
#print("collision")
|
||||
if body is BoxBoy:
|
||||
body.enable_float()
|
||||
body.set_floaty_height(position.y + $CollisionShape2D.shape.get_rect().position.y)
|
||||
|
||||
func _on_body_exited(body) -> void:
|
||||
if body is BoxBoy:
|
||||
body.disable_float()
|
||||
body.clear_floaty_height()
|
||||
|
||||
Reference in New Issue
Block a user