0 votes

Hi, I've been trying to fix this for 2 days by watching hours of tutorials. My problem: 2D game, top-down shooter, when it's time to shoot the end of the gun, the bullet is not fired from the set point, but I see it in a completely different direction, I leave the link of the tutorial I followed: https://kidscancode.org/godot_recipes/2d/2d_shooting/

in Engine by (12 points)

According to the tutorial:

A common mistake is to add the bullet as a child of the player.
To fix this, we should make sure the bullets are added to the world
instead. In this case, we’ll use owner, which refers to the root node
of the scene the player is in.

Could you post how your scene is configured when you hit play? To do so, click on scene> remote and expand the whole tree when the game is running.

Please log in or register to answer this question.

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 Frequently asked questions and 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 [email protected] with your username.