Lesson 3
This commit is contained in:
@@ -8,3 +8,9 @@ var score_to_give : int = 1
|
||||
func _on_input_event(camera, event, event_position, normal, shape_idx):
|
||||
if event is InputEventMouseButton and event.button_index == MOUSE_BUTTON_LEFT and event.pressed :
|
||||
print ("Increase Balloon Size")
|
||||
scale += Vector3.ONE * size_increase
|
||||
clicks_to_pop -= 1
|
||||
|
||||
if clicks_to_pop == 0:
|
||||
get_node("/root/Main").increase_score(score_to_give)
|
||||
queue_free()
|
||||
|
||||
Reference in New Issue
Block a user