why not use spawn?

inkoqnitoinkoqnito Member Posts: 16
edited February 2012 in Working with GS (Mac)
Hello!

I have read that many hear don't use spawn? When should i use it? i am making a space shooter now and i am wondering for example laser shoots ten at the screen at most should put ten of thoose of screen and then just move them as the go out of screen?

Want to know now before i come to long in game development=)

Kind regards

Comments

  • POMPOM Member Posts: 2,599
    Oh no no , by no means you can use spawn , its just , when you test your game on the device , if you see low fps rates and lags , you might consider recycling bullets instead of spawning , just to increase performance .

    Roy.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    I think the whole don't spawn is becoming moot with the new armv7 processors and the power of newer devices and when lua is dropped it will be a non issue.
  • beefy_clyrobeefy_clyro Member Posts: 5,394
    Yeh when LUA is dropped and we can just use spawn and destroy it'll make it soo much easier than faff around with recycling everything.
  • inkoqnitoinkoqnito Member Posts: 16
    Hi all!

    Thanks for the quick input on the subject=) Think i will be using spawn then. Just hope that the LUA are being dropped soon then=)
    Just another quick question? If i want to spawn several actors at the same time in different directions can i do this? because it feels like you only can spawn one actor at a time?
  • POMPOM Member Posts: 2,599
    Yes , only one spawn per behavior , but if you add a timer or a timer with a counter you can spawn as much you can spawn many actors with only 1 spawn behavior .

    Roy.
  • inkoqnitoinkoqnito Member Posts: 16
    P-O-M@ Thanks for the help just made an explosion :D
  • The_Gamesalad_GuruThe_Gamesalad_Guru Member Posts: 9,922
    I always spawn actors in my projects and never had a problem. Our current project will be spawning actors intead of moving them into place as I'm building everything on one scene to avoid the loading wheel.
  • MotherHooseMotherHoose Member Posts: 2,456
    think the only problem with spawnBehaviors … is with timerBehaviors set at fast firing speed … every O.? sec spawn

    I never have had problems with spawn and spawning more than one actor at a time … but then I always try to avoid using the Timer Behavior.
    would rather interpolate a value using Duration to time events (nothing ever seems to stop that Interpolate!)

    @};- MH
Sign In or Register to comment.