Started working on a floaty field
This commit is contained in:
10
platforms/floaty.gd
Normal file
10
platforms/floaty.gd
Normal file
@@ -0,0 +1,10 @@
|
||||
extends Area2D
|
||||
|
||||
func _on_body_entered(body) -> void:
|
||||
#print("collision")
|
||||
if body is BoxBoy:
|
||||
body.enable_float()
|
||||
|
||||
func _on_body_exited(body) -> void:
|
||||
if body is BoxBoy:
|
||||
body.disable_float()
|
||||
Reference in New Issue
Block a user