How to lock a character around an object?

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

I’m still learning the engine and haven’t started working on my idea yet. I thought I’d ask now and have the answer (hopefully) when I’m ready to start working. Pretty much I want my character to walk up to a “tree” or “ore deposit” and when they click “space” they will be locked at a certain radius around the tree only being able to circle it. They will have to put the tool away before they can move freely again. Also can I do animations like a tree falling or my character chopping the tree or is that done in another program?

no offense … but …
i would suggest you go through a beginner tutorial first. This would give you a bit more insight into godot. The question you ask is not very specific and i think the answer given would not help you much. To do so as you ask it would take more then just one piece of code.

klaas | 2020-08-26 07:45