This repository has been archived on 2024-09-30. You can view files and clone it, but cannot push or open issues/pull-requests.
gbjam12/puzzles/button/ball_button.gd

10 lines
189 B
GDScript

class_name BallButton
extends GroundButton
@export var ball: Ball
func _flip():
sprite.frame = 1 if is_active else 0
if is_active and ball and not ball.can_roll:
ball.can_roll = true