FoodTruckLeo Hi, so i want to emit a signal when the axe has touched the tree 3 times. I get the error: @ _ready(): In Object of type 'CharacterBody2D': Attempt to connect nonexistent signal 'CollisionsWithTree3' to callable 'Area2D(Baum.gd)::collwithtree3'.
trizZzle FoodTruckLeo You need to remove that () from your signal name. You need parenthesis on your signals only when you want to send parameters with it. And if you do so, you have to put some variables and optional a type for those inside the parenthesis. No parameters: signal health_depleted With parameters: signal health_changed(old_value, new_value) Taken from: https://docs.godotengine.org/en/stable/getting_started/step_by_step/signals.html
FoodTruckLeo trizZzle Yea it prints sde. Thats the rest of my code (pls don't mind the bad movement script XD):
trizZzle Sorry, I'm somewhat lost right now. Especially about the signal connections. Can you maybe upload your project somewhere so I can test it? However, I'm going for a walk now ^^
FoodTruckLeo trizZzle I have it on github is your name the same as here? I should maybe also go for a walk for once xD
trizZzle I was lazy, short walk. 😃 That's me: https://github.com/TAGames However I'm not really familiar with github.
trizZzle Got it. Can't open some scenes, because baumchara.gd is missing. Now I'm figuring out how to remove those dependicies.
trizZzle Ok, I just create some empty script for baumchara.gd and now I can look at it. Hmm, I think you general node structure is pretty messed up. Are the trees supposed to be moved? EDIT: Or could you tell me what you are trying to achieve?
FoodTruckLeo trizZzle you can already do it by clicking f/r and I'm trying to make it so you can cut them down but the signal doesn't work somehow