–2 votes

I want to make it possible for the character to catch an item by pressing the “catch” button, and throw the item using the “throw” button. How should I do it?

in Engine by (43 points)

We need much more information. 2D/3D? what kind of "item"? A Rigidbody(2D)? etc etc etc

Item is just a sprite. The character should go to item, click on the button and it will move to his inventory. The character must click on the button and item will move from inventory to the world in front of the character.

You can tell which kind of "item" is better to use.

1 Answer

0 votes

For 3D I can recommend you the "3D FPP Interaction Demo":

by (710 points)

I marked 2D in tags, what does 3D have to do with it?

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to webmaster@godotengine.org with your username.