...make objects stop enemy bullets

Discussion in 'How Can I...?' started by heathclose, Feb 13, 2016.

  1. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    Screenshot-768x1024-2016-02-13-02.28.05PM.png Screenshot-768x1024-2016-02-13-02.28.07PM.png

    how do i get those trees to stop the enemy fire?

    as a side note... only the first bullet is facing the right way, the rest spawn upside down... how can i fix that as well?
     
  2. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    anyone know either answer?
     
  3. ajcoryat

    ajcoryat Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    241
    Likes Received:
    111
    Click the bullet then go to the editor and grab the side tag to either flip end over end or the round tag and rotate 180 degrees.
     
  4. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    this is how it appears in the scene... the first bullet fired comes just fine, but the spawned ones afterwords are not they come out as it appears in the screen shots above (you see two because of scene overlap from having it solod)

    Screen Shot 2016-02-14 at 1.47.29 PM.png
     
  5. ajcoryat

    ajcoryat Avid Boxer

    Joined:
    Sep 25, 2015
    Messages:
    241
    Likes Received:
    111
    I've had issues with elongated bullets before. Best bet is to create a round bullet.
     
  6. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    the fire of the "missile" would still be facing the wrong direction...
     
  7. jigglybean

    jigglybean Avid Boxer

    Joined:
    Nov 3, 2015
    Messages:
    270
    Likes Received:
    125
    I used a transform object to change the direction off screen. I've made a quick video showing you in debug mode too. The direction of where your bullets go off screen will depend on your gameplay direction. So just play around and see
     
  8. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    awesome.. never thought of that... can just use those to transform position...actually this opens up a few ideas... hey thanks for doing that work for me and taking the time to teach, I really really appreciate it...
     
  9. heathclose

    heathclose Miniboss Boxer

    Joined:
    Jan 28, 2016
    Messages:
    1,810
    Likes Received:
    1,026
    as for the weird bullet spawner, I'll shoot a vid and place in a different post... thx everyone...
     
  10. jigglybean

    jigglybean Avid Boxer

    Joined:
    Nov 3, 2015
    Messages:
    270
    Likes Received:
    125
    No problem. What the transform now does, is spawn the bullet off screen, to give the illusion its vanished. However, I am worried about performance if too many are spawned off screen, but hoping that once a player moves off that level, its all forgotten or reset.
     
  11. trudnai

    trudnai Miniboss Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1,235
    Likes Received:
    701
    There is the Back Del Threshold in Advanced Gameplay Settings you can control how far an object can go off screen before gets deleted. If you place your object further than that, BB should automatically delete the object so theoretically you will have no memory (resource) leaks because of that.
     
    JustWatchApps and jigglybean like this.
  12. pochat

    pochat Boxer

    Joined:
    Nov 29, 2016
    Messages:
    32
    Likes Received:
    5
    @heathclose Sorry, how did you make that the obstacles stop the bullets? Thanks in advance for your help.
     
  13. meremy

    meremy Avid Boxer

    Joined:
    Aug 26, 2016
    Messages:
    134
    Likes Received:
    66
    Put a transform in the place the bullet hits the wall. Set the transform to change the position of the bullet outside of screen into the del threshold :) it's like a teleport but for objects
     
    pochat likes this.
  14. pochat

    pochat Boxer

    Joined:
    Nov 29, 2016
    Messages:
    32
    Likes Received:
    5
    Ah. Got it. I'll try that now. Thanks for your help!
     

Share This Page