Limited Space
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
ld54/nodes/obstacle/obstacle.gd

14 lines
249 B

extends RigidBody2D
class_name Obstacle
@onready var original_parent = get_parent()
func grabbed(by):
$shape.disabled = true
gravity_scale = 0
reparent(by)
func dropped():
$shape.disabled = false
gravity_scale = 1
reparent(original_parent)