[Solved] Max number of global custom blocks?

1MrPaul1

  • *
  • Posts: 1285
I found that using global custom blocks is very useful, so how many custom blocks I can create? If I'll make for example 50 global custom blocks, will it slowdown the game or not?

« Last Edit: March 30, 2012, 08:04:14 pm by 1MrPaul1 »

rob1221

  • *
  • Posts: 9474
I don't think they will slow down the game at all.  However, if you have a large number of custom blocks it will take more time to find them when you need them since they're all listed together.

1MrPaul1

  • *
  • Posts: 1285
Oh, it's good! Thank you!
They categorized by names of behaviors, it helps a little to find them, but they make code more simple and short time in building logic. So I will use them.
But I have one problem with it. Sometimes, if custom blocks using in when created, behavior that use it, initialize earlier than behavior with custom block, so I have null object errors. Adding small delay before creating something helps, but may be it is possible to control which behavior run first and which run than?

rob1221

  • *
  • Posts: 9474
Nope.  You'll either have to force the order in some other way (booleans, messaging, enable behavior blocks) or use delays.

1MrPaul1

  • *
  • Posts: 1285
Ok, will use time delays. Thank you!