> Use "For each bee"?
> Also, you need to organize your events a bit, there are too many small events, it will very soon become hard to keep track of them.
> Move some of them under "On every tick", others under "Every 0.1s", create functions etc.
> Something like this:
> Thanks for the tips. I tried for every bee but i got anerror at the beginning. The game still worked but the enemies didn't work...
Matei511 you cant use the Active group that way as it would not work as intended or not work at all, as you use it with multiple instances of the same object is not like instances variables which they act independently so here once you deactivate the group you will deactivate for the whole bees and vice-versa, the Active and Deactive Group is best suited for one object like example for the player as is one object, or you can use it with multiple objects for specific things example the beginning and the end of some particular "Zone events" etc....
The reason you will have problems activating it and deactivating it is:
Because first the For Each will act for each instance independently so you gonna have the scenario where you have some Bees Angry and some not so this will a cause conflict as some they are firing Active group and some they are firing Deactive Group all at the same time so unless they are all the at same state example not Angry then it will work the deactivate the group and vice-versa and this will work as long as the trigger to deactivate groups is outside of that group because if are inside the group, once you the deactivate the group it will not be possible to activate it again as all the triggers to activate it are inside the group and the group is obviously is not active.
One thing you can do is if the bees are in a particular area or zone then you can do:
1-Before enter that zone where all the bees are, then place a dummy sprite to active the group bee controls
2-At the end of that zone where are the bees you can have another dummy to the activate the group bee controls