Multiple objects overlapping an obstacle
What I'm trying to do is have it so that when an Active object overlaps an obstacle, all instances of that object move down. At the same time however, I want it so that when each individual object overlaps an obstacle and isn't overlapping a 'Dot' object that each instance will create a 'Dot' object.
It was suggested that I use spread values or a ForEach loop, and I tried both but still couldn't figure it out. I'd also like to avoid using the ForEach object if possible.
Here's the MFA containing the problem
View MFA
I was just hoping someone could show me what I'm doing wrong by modifying the code so that it works (it's only a few events). I've spent such a long time trying to figure this out, but I'm thinking that the solution should be pretty simple.
Thanks in advance
Re: Multiple objects overlapping an obstacle
It was hard to tell from your post what you meant, but I assume it is this?
http://mfa.aquadasoft.com/view/1312836700-Answer
Re: Multiple objects overlapping an obstacle
YESSSSSSSSSS, thank you so much LB. So it looks like you had to use a nested loop to get it to work. That makes sense... I was just trying to do it all in one normal loop.
Would there be a way to achieve the same thing without the ForEach object or is it necessary?
Re: Multiple objects overlapping an obstacle
You can do it the old, slower way with spread values and fast loops. ;)
The nested loop was because the object selection was doing things I didn't want and I had to force it to go one object at a time.
Re: Multiple objects overlapping an obstacle
All right, well thanks again. I should be able to modify my game now and get it to work