I try to make an fps game. I dont shoot bullets, instead i use rays and a python script.

Now i want to add a weapon in front of the player and if the player shoots it should animate the weapon but i cant figure out how to do that.

When i set the player to be parent of the weapon, the whole player moves, if i dont parent it, the weapon stays at its position and dont follow the player.

How can i archive this accordingly?

EDIT: Done

  • $\begingroup$ Usually in FPS the weapon is not on the same scene as the character, try to add an overlay scene with the weapon on it. $\endgroup$ – Joel Gomes da Silva Mar 28 at 22:42
  • $\begingroup$ Thank you, i already fixed that. It was just a wrong parenting. I has it in front of the camera because its animated using empties in front of the camera. Maybe thats not best practice but its ok for me. I dont get any answers here so its hard for me to learn. $\endgroup$ – MBrain Mar 29 at 2:28
  • $\begingroup$ I recommend you to ask questions on Blender Artists forum, Game Engine section, there you will find an somewhat active BGE community. blenderartists.org/c/game-engine $\endgroup$ – Joel Gomes da Silva Mar 30 at 13:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.