0 votes

I want an object[gun] to spawn if some variable == 1, and that gun should be to the right of the player and the gun should face where the cursor is. I've completed the face where cursor is, and the right to player I can do later, right now I'm just wondering how I can make a gun that can shoot projectiles when mouse button left is clicked. keep in mind im a noob and i can't even code a single line, except for a variable.

in Engine by (12 points)

1 Answer

0 votes

If it's for 2d see this youtube video.
by the way, I'm new to coding so sorry if I cant help, but ill try my best to help you!

by (40 points)

Video is only 6 months old so should work with your project.
Older video is hard for beginners as they don't work some times.

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.