Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Thank you so much!

I will try to do something like that, especially I like the idea using RayCast for detecting the log, I didn't thought about that, that's brilliant, hmm ... if to think about it, I can try to use RayCast for detecting pickable items too, to detect which I can pick-up and which can't.

(1 edit)

For Pickable items, use Area / Area3d and then connect an on_area_entered() or on_body_entered signal() depending on what type you are using. If you are using a kinematicBody or RigidBody for your player, use on_body_entered(). Add your player to a group "player" and then check in the on_body_entered() function in the script if the colliding body is_in_group "player". Then write the script to trigger the animation if true.