1
$\begingroup$

For this question, I am trying to merge two things together. For the first part, I would like to have my empty that fires bullets to fire at the center of the screen while also having a spray pattern (sort of like the bullets shoot randomly, but I use an animation). I asked a question on how to have my bullets be fired to the center of the screen, and I received a great answer. I use a ray and an empty at the end of it, and the empty collides with objects. The empty that fires the bullets just tracks to it. If you do not understand, you can look at the QA in depth here. For the second part, I would like to have my bullets be fired in a "spray pattern." I achieved this using an animation on my empty that fires the bullets. For the question, I am trying to merge both of these things together. I would like my empty to point at the center of the screen while shooting in a pattern. Would I just need to apply both and it would work? Would the animation need to be removed? If you have any idea of how to achieve this, please post anything below. Thank you!

$\endgroup$

1 Answer 1

3
$\begingroup$

You can achieve the behavior that you want by parenting your empty with the recoil animation to the empty that tracks to the center of the screen.

enter image description here

           Tracks to the center                         Emits projectiles + plays recoil animation

When your projectile emitting empty is parented to the tracking empty, it will still track to the center of the screen, and your bullets will vary in direction depending on your animation on that empty.

I think this is the effect you are trying to achieveenter image description here

$\endgroup$
1
  • $\begingroup$ So the parent is which empty? Sorry, I got a little confused. It seems that you said the parent is the empty that fires bullets. Is that right? $\endgroup$
    – blackhole
    Commented Feb 19, 2015 at 3:44

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .