Need help understanding waiting within loops

Get help using Construct 2

Post » Wed Oct 01, 2014 8:12 am

I noticed I had not included the worker.id_interact within the function calls and have edited that now.
Have retro games for sale? Buy & Sell Retro Games UK
Posts: 68
Reputation: 768

Post » Wed Oct 01, 2014 11:12 am

MiniHulk wrote:Please when you get the time could you take a look at my new setup, it does seem far more stable and easier to manage am I going in the right direction and any tips on a priority system?

Its quite hard to see if you are going in the right direction as I don't know your program, but if it works then I assume its fine. One thing that you might consider, unless you do it somewhere else, is in the function "Find area" to lock the area that a worker is moving to, I would imagine not doing that would at some point give you some conflicts with several workers trying to go to the same area.
So when a worker is found set "sm_need_worker = false" for the area.

Also in your for each events at the top, I would personally reorganize it a bit, here is an example:

I would also advise you to start commenting your things, at some point if you don't, you will loose control. And it makes it a lot easier for yourself to later go in an make changes down the line.
Posts: 1,210
Reputation: 7,559


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 2 guests