is this a good way to spawn a bullet at difference direction?

guillefaceguilleface Member Posts: 1,014
edited November -1 in Working with GS (Mac)
on my actor i have up to 6 spawn behavior for same bullet, like at 0,45,90 angle.etc. it works good i just dont know if this take a lot of ram,or how can i spawn the same bullet at difference direction at ones and random direction also

Comments

  • FloridaGamesFloridaGames Member Posts: 328
    If you have it rotate in intervals like 0,45,90,135.... then you can just have an attribute: randomdirection.
    Every .1 sec. change att. randomdirection to random(0,8)
    give the bullet this behavior: change rotation to : (game.randomdirection*45).
  • BrynjeBamsenBrynjeBamsen Member Posts: 188
    Just have one bullet and one spawn behavior.

    in the Spawn rule
    Spawn actor - Bullet
    Direction Random(0,90) or whatever you want
  • guillefaceguilleface Member Posts: 1,014
    thank you guys works really good, i mean my way was good too but this is much better, i dont know why i always do it the hardest way lol
Sign In or Register to comment.