What is the best option for best performance?
hrsmedia
Member Posts: 522
Option 1 = Have 1 main scene. Create a Level attribute and for example have a spawner actor that spawns all the different actors depending on what the Level attribute is.
Option 2 = Create a scene and spawner actors for each level.
So if you have 1 actor with say 50 rules in it, but only 1 rule works at a time depending on the level. Does the program read all the rules, therefore slowing down the game?
Hope this makes sense...Thanks!
Option 2 = Create a scene and spawner actors for each level.
So if you have 1 actor with say 50 rules in it, but only 1 rule works at a time depending on the level. Does the program read all the rules, therefore slowing down the game?
Hope this makes sense...Thanks!
Comments
in both you have 1 scene and a spawner that spawn the actors depending on the
attribute - level.. am i missing something? i want to help you
p.s , if you have 50 rules but 49 of them is not active so its not suppose to slow down the game
its just 49 "IFS" , the processor should handle it (in my opinion)
:-)
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps
Option 1 = 1 scene with 1 or 2 spawner actors filled with different rules for each level (Example if game.level=1 do this, if game.level=2 do this etc.)
Option 2 = Create a scene for each level and spawner actors for each level.
So either have a couple of actors(jammed with rules) and 1 scene or lots of actors and lots of scenes?
@gyroscope So I guess it would be more reliable to create scene for each level?
Thanks
To clarify, I wouldn't say more reliable as such, just easier to... er,... script, yes, that'll do...script the behaviour rules, more clearly defined with less going on it each.
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps