spawning with tables or using the behavior?
Is it better to spawn things using tables or just the behavior?
Best Answers
-
tatiang Posts: 11,949
The answer is that it depends. Whether you use a table or not, you're still using the Spawn Actor behavior. Tables can make your code very efficient but they aren't required.
New to GameSalad? (FAQs) | Tutorials | Templates | Greenleaf Games | Educator & Certified GameSalad User
-
ookami007 Posts: 581
That's VERY subjective. You can do it either way, it really depends on the result you want.
To give you an example, right now, I'm making an action side scroller... I wanted a more random approach so I have it randomly spawning them.
In the near future, I'm going to release a space shooter that will have preset levels, so it will spawn things from a table so people can learn the level and the best way to get around it.
Two different ideas, two different methods of spawning. It's really up to you and what's going to be best for your game.
Too many people get caught up in using the latest and greatest, to fix a broken sign, they want to go out and get the drill, find the right screw, the right bit, get the extension cord, etc.... when a hammer and nail would do the job with 1/10 the effort and time.
Answers
Thank you all