is having 10 actors with constrain and some rules better than spawn and destroy?

guillefaceguilleface Member, BASIC Posts: 1,039
edited November -1 in Working with GS (Mac)
instead of having the whole game shooting bullets spawn and destroy i have 10 actors one each with a constrain rule , i find this way for recycle my self, i just want to know if you think this is a better method because i believe having constrain a lot is also bad for memory

Comments

  • StuartYStuartY Member Posts: 134
    Hi,

    This really depends on your exact situation. However, I'm not sure why you need a constrain rule at all to recycle bullets like this. Just set them back to your "shooters" position when you need them, change their speed to whatever you want then set their velocity to zero when they're off screen.
  • guillefaceguilleface Member, BASIC Posts: 1,039
    than you i was using a different method of how sending back the bullets , but i think your method is way better thank you alot
Sign In or Register to comment.