> You need to move the condition from sub-event to event #60. "While" and the condition should be in the same event.
> I also suggest always adding this "emergency" exit condition to While loops, to prevent infinite loops: loopindex<1000
Hi,
I realise now that I was expecting one of the sub events conditions evaluating to False to cause the WHILE loop to exit, so thanks - it has to be in the same event. Still an issue though, the overlap test is not working. So I can get out of the WHILE loop but it is still leaving overlapped sprites. Can you not check for overlap in the same frame you spawned then?
Regards
S
you should be able to check for overlaps once the item is created, but i think since the overlap checking is under a function you could easily drag the subevent from under while and place it under the function as now u have
Function
---while subevent
------subevent with while as parent
what im suggesting is
function
---while subevent
---check for overlap (with function as parent) -- this way gives it a bit of time to create the items, then check the overlap.
not sure if will work, but logically it should... unless we understand wrong the while loop.
Edit2: if u can use the overlap check on a everytick id separate the "overlap condition" outside the function, and run it always basically... if that is a posibility that will definetly work, just not sure how will affect ur gameplay/system u built, and if u need that!