Spread value + Fast Loop bug?
I made the box and the object for the detection a pair by using a spread value and a high-speed loop.
And, to stop movement when the object and the box for the detection overlapping, the event was set.
But, the movoment doesn't stop.
http://mfa.aquadasoft.com/view/1286372719-fastloop_bug
However, it worked fine though the same events was made in the past.
http://mfa.aquadasoft.com/view/1286372752-same_events_in_the_past
How can I stop the object?
Re: Spread value + Fast Loop bug?
Your fastloop_bug file works file for me.
Re: Spread value + Fast Loop bug?
Really? A green box doesn't get on on a duplicated green box, in my computer. :(
Re: Spread value + Fast Loop bug?
Why are the results of the landing on the platform different every time if you press F2? Some times the pixels line up, other times they are a pixel off. :confused:
Re: Spread value + Fast Loop bug?
It is NOT working for me either. I tried using a nested fastloop to detect each object individually and it still didn't work. I can only guess this is because you are using built in movements. Since I don't often use the Stop command, I can't be 100% sure of the problem either.
Re: Spread value + Fast Loop bug?
Mobichan, thank goodness for your reply. I had fixed the code but it still didn't work so I gave up. I had no idea he was using a built-in movement designed to torment my code...
Re: Spread value + Fast Loop bug?
ASD: I would recommend you NOT use the built in movement for your objects. My recommendation is to try using a nested fastloop (which is a fastloop inside a fastloop).
The idea is to use a single detector object instead of using multiple copies of a detector object. You will position the detector over each object, one at a time, and do your collision checks.
If you need an example, I might have some time later to make one for you.
Mobichan
Re: Spread value + Fast Loop bug?
Quote:
Originally Posted by mobichan
If you need an example, I might have some time later to make one for you.
Yes, I want to your example.
Thanks.
Re: Spread value + Fast Loop bug?
Actually, you do not even need an invisible detector object. You can keep the separate collision mask within the object itself. Example.
Re: Spread value + Fast Loop bug?
Nifflas: that is a very cool approach. I'll need to try it out someday (even though I am a middle-user ;) ). I just wonder if it is beyond ASD's level, since he doesn't seem to be exploring how to create movements from scratch. But the animation solution certainly alleviates the headaches of detecting objects against clones of themselves.