Best practice for bullet spray
I am currently working on top view space shooter and I was wondering what the best method would be for creating a spray of bullets from an enemy ship. For shooting from my main ship actor I have 10 instance versions of a bullet actor which interpolate along the y access and then recycle, should I use this same method for the alien shooting and just use more bullets? I'm leaning towards this, but wanted to get the advice of other gamesalad users if this is the best way to do this.
Also, if I want to interpolate at an angle, what is the best way to do this? Should I have 2 rules that interpolate the x and y values? Or is there an angle function that I can use to make bullets go in a 45 degree direction? I figure I can use this for enemy shooting and also to make a 3 way shot, am I correct in this?
I appreciate your help, I feel like I guess a lot on how to do things with gamesalad so I want to make sure my guesswork is aligned with best practices.
Also, if I want to interpolate at an angle, what is the best way to do this? Should I have 2 rules that interpolate the x and y values? Or is there an angle function that I can use to make bullets go in a 45 degree direction? I figure I can use this for enemy shooting and also to make a 3 way shot, am I correct in this?
I appreciate your help, I feel like I guess a lot on how to do things with gamesalad so I want to make sure my guesswork is aligned with best practices.
Comments