So I'm making this danmakufu game in Blender as a school project, and it's due by the end of May.

I have this little rocket:

meet the player character, folks!

And I have this... TIE fighter-like thing:

this is the TIE in question, which is surprising because there is no "TIE" in "question"

So I'm trying to make the TIE fighter's y-pos match with the player's y-pos, but not make it too fast otherwise the TIE fighter's just going to run into the storm of bullets produced by the player, but I also don't want him to go too fast (or else his bullets would be way out of synch.) The problem is, however, is that it's decidedly NOT MIT AppInventor or Scratch. You can't just stick in a data block saying "glide to co-ords (objectx+100,objecty)" or "always repeat [wait 5 ticks] [create object "Doop" with (parentx,parenty) and (direction=playerhitbox)]" in Blender. How can such a function be attained in Blender? Question 1 answered. onto the next one! Also, how does one actually get the bullet to aim at the player, but not seek?

P.S. the person with the best answer gets to be mentioned in the credits!

  • $\begingroup$ Are you using python scripting, or just the built in controls for the game engine? $\endgroup$ – Cyberchipz May 22 '15 at 4:42
  • 1
    $\begingroup$ I really don't get the picture here ( maybe my poor english ) but uploading the .blend and adding more explanation could help ( me and others ) $\endgroup$ – Chebhou May 22 '15 at 14:10
  • $\begingroup$ @Cyberchipz: Built in datablocks in game logic $\endgroup$ – Nefer007 May 22 '15 at 20:08
  • $\begingroup$ @Chebhou: Okay, here you go $\endgroup$ – Nefer007 May 22 '15 at 20:08
  • $\begingroup$ Edit: how do you do that? $\endgroup$ – Nefer007 May 22 '15 at 20:09

to keep the Tie moving in front of the player you can add some random motion on the Y axis with a constraint to keep it in the view, and to keep the Tie moving in front of the object on the X-axis you add some motion on the x axis:

enter image description here

to make a bullet be fired at a position without traking an object you can add another object that will track the hitBox and fire the bullets, when the box move the bullets will not track it

enter image description here

  • $\begingroup$ I was referring to the TIE fighter's bullets. They still home in on the hitbox. $\endgroup$ – Nefer007 May 23 '15 at 12:31

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.