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.