Best practice for bullet spray

WhizzoWhizzo Member Posts: 2
edited October 2012 in Working with GS (Mac)
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.

Comments

  • RPRP Member Posts: 1,990
    edited October 2012
    I did a spread gun effect before. For this method, either spawn or interpolate the actor (bullet). Each bullet in that spread, needs its own move/accelerate behavior (match the speeds), collision/s and independent trajectory (angle for it to travel). You set that spawn/interpolate point anywhere on the actor you want via the X and Y. You are on the right path.
Sign In or Register to comment.