Problem with shooting

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

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/

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.

estebanmolca | 2021-08-20 16:17