Re: While object for MMF/Flash?
Quote:
Originally Posted by Jamie
It depends how many loops you're doing. If you do the classic spread value/loop thing, it actually has to loop through all of the objects up to the loop index every loop to compare the alterable value.
Wouldn't it actually have to loop all the objects, not just "up to the loop index"? MMF doesn't know that only one object matches the loop index, so it tests them all.
I realise I'm telling someone at Clickteam how their own software works, I'll look a fool if I'm wrong...
Re: While object for MMF/Flash?
No you won't. I thought that was strange, too.
Re: While object for MMF/Flash?
Quote:
Originally Posted by Dynasoft
Quote:
Originally Posted by Jamie
It depends how many loops you're doing. If you do the classic spread value/loop thing, it actually has to loop through all of the objects up to the loop index every loop to compare the alterable value.
Wouldn't it actually have to loop all the objects, not just "up to the loop index"? MMF doesn't know that only one object matches the loop index, so it tests them all.
I realise I'm telling someone at Clickteam how their own software works, I'll look a fool if I'm wrong...
Ah, I guess you must be right. I'm the fool here :)
That makes the spread/loop thing even slower, then.
EDIT: I corrected my post
Re: While object for MMF/Flash?
The original behavior might be correct if you can move to the next loop when you find one object that meets the condition.
Re: While object for MMF/Flash?
That's what I thought originally, but it does need to check all the objects since it doesn't know if there's more than one with the same alterable value, in which case they'd both get selected.