I started with Godot about 2 weeks ago, But have been getting _load_data: Condition !f is true. Returned: ERR_CANT_OPEN (Godot)
on this code:
extends Area2D
var points = 0
var pointAdder = 1
var pointMultiplier = 1
# Called when the node enters the scene tree for the first time.
func _input(event):
if event is InputEventMouseButton:
if event.button_index == BUTTON_LEFT and event.pressed:
points = (points + pointAdder)*pointMultiplier
get_node("../scoreLabel").text = str(points)
Node tree:
Spatial (Node)
├─backgroundMap :: TileMap
└─scoreLabel :: Label
├─treeClickableArea :: Area2D <<
├─treeSprite :: Sprite
└─treeCollider :: CollisionShape2D
I am trying to display the number of times that treeCollider
has been clicked. When I launch the game despite the error, It will count up no matter where I click.