Godot Version
4.3
Question
Hello, i’m new in Godot, getting basic course https://www.youtube.com/watch?v=LOhfqjmasi0
one of the steps - pickups. Need to create code to force coin (area2d) to react character body 2d. I followed instructions on video and it’s doesn’t work. Actually i’m surprised that fresh video (created 4 month ago) already is not relevant.
Code from video:
extends Area2D
func _on_body_entered(body):
print(“23”)
defaule code:
func _on_body_entered(body: Node2D) → void:
print(“23”)
Both not working. Please help
btw English is not my native language
Hi, you have to connect a signal to make this function work. Make sure you do it from the “Coin” root node as shown at 31:42: https://youtu.be/LOhfqjmasi0?t=1903
The Coin node then should have that “wifi signal” icon next to it. Also, check if you have your collision layers and masks right (it’s discussed further in the video).
I have done exactly same tutorial yesterday and it worked fine for me.
i did everything, as showed in video, not working. I’m using Godot 4.3. What is your version?
Same version, downloaded yesterday. You can maybe share your project and I can take a look
Also, check if your CollisionShape2d of the Coin is set to cover the coin sprite and Coin’s (Area2D) “Monitoring” attribute is set to True (should be by default). Can’t think of anything else atm 
Thank you, i will try again. Cant share because i used my save in other version and its destroyed