Random Enemy Bullet Types Spawning

Discussion in 'How Can I...?' started by veski4a, May 10, 2018.

  1. veski4a

    veski4a Boxer

    Joined:
    May 10, 2018
    Messages:
    6
    Likes Received:
    0
    Hi guys, I'm new to Buildbox and I've just started messing around with the software.

    Currently I'm working on a enemy that will shoot bullets against my character. I added the spawning component to the enemy, but I want to create something more complex like say the enemy can shoot different types of bullets like for example regular bullets and rockets.

    I want to make the enemy to shoot the two types of bullets randomly meaning bullet, rocket, rocket, rocket, bullet, bullet, rocket, bullet ... etc. and for the two types to not overlap on screen.

    Cheers :cool:
     
  2. k2milli

    k2milli Boxer

    Joined:
    Jun 23, 2018
    Messages:
    4
    Likes Received:
    0
    did you fine a solution
    did you find a solution ?
     
  3. veski4a

    veski4a Boxer

    Joined:
    May 10, 2018
    Messages:
    6
    Likes Received:
    0
    No I couldn't find a solution and dropped the idea :(
     
  4. Phill Mason

    Phill Mason Serious Boxer

    Joined:
    Sep 25, 2015
    Messages:
    880
    Likes Received:
    721
    I think you've pretty much nailed how to do it in your question anyway :)

    You've added an enemy bullet that spawns from your enemy, so try adding another one that spawns rockets and set the spawning time to a different interval. You'll have to play around with the two different timings, but I'm pretty sure you'll get something close to the enemy shooting effect you're after.
     

Share This Page