space shooter enemy fleet movement patterns

0 favourites
  • 7 posts
From the Asset Store
Spaces Ambience contains 102 Sounds: 53 track and 49 sounds
  • I've been playing around with making an infinite space shooter for a few days. What I'm trying to do is figure out a good way to set patterns for the enemy squads to move in, like back on the old arcade games. I've tried a bunch of different ideas that I came up with but none of them seem to work very well. I'm sure this has been done many times before but I can't find anything in the tutorials or old forum posts on how to do it. Can anyone who has done this before lead me in the right direction on how I can set up some nice patterns?

    PS - I've tried using several combinations of sine, bullet, gravity, physics, pinning to invisible rotating sprites, self.x + etc... but I just can't get it to work nicely. I'm not very good at math so that's probably one of my biggest problems. Also, I'm currently using the wrap behavior for the ships, but I can always change that if needed.

    Thank you very much for any help you can offer.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • If there's anyone out there that has had success making the enemy fleet wave movement patterns I would really like to hear from you and get some ideas. I'm not looking to copy your patterns, I just want to figure out a better way to create mine. Thanks again.

  • Sorry but I cannot understand what do you mean by Enemy Fleet Wave , if you can tell us more I think maybe some one else can also help you. If the question was clear for me, maybe I can try to help you. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • If you want it randomized you could set up enemy spawn points and enable/disable certain ones so the player never knows what is coming in terms of enemies and it doesn't get tedious.

  • I am imagining a screen-size invisible sprite with many imagepoints hand-placed by you and enemies moving through them in order via bullet movement? This way you can visualize the movement pattern before they come?

    Or you can use many small invisible sprites as waypoints?

    You could use arrays to store screen locations and let the enemies loop through various arrays for various flight patterns?

    You could also do it in a relativistic way, ie, instead of screen coordinates enemies could have "enters the screen from top, moves 50 pixels south, then 40 pixels west and 90 pixels further south (diagonal), then west until exits the screen... So what you put in 2d array 1: +40,0 2: -40,+90 3: -500,0 and these you add to instance variable called "target" of the bullet behaviour sprite.

    Just on the top of my head...

  • Create number of patterns and store them in to array. And then call the randomly.

  • Thank you for the ideas. I'll start testing some of these and see what I can come up with. Much appreciated.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)