in Godot 3.4 hitting bricks with head(Super Mario Clone)

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By rodell2020

I have a platform the player walks acrross it
my code to move the player and climb the ladder
so i created a portal[area2d] when he enters the portal
it taks him to another long platform
(so i was thinking if i put a few bricks above him, and an enemy for
him to jump on.
what i need is help with the code to hit the brick with his head and
break it.(creating/and adding to the coin count in my HUD…)
i can post the code for the enemy or the HUD if needed…

Godot script (only use c++ if needed)

look at this

https://godottutorials.pro/how-to-make-games-godot/

ramazan | 2022-02-08 22:08