Problems with Object selecting
Hello all,
I'm struggling once again with object selecting in the Event Editor (by this I mean choosing a particular instance of an object when there is more than one of its kind). I've always found it hard to do this. I've tried loops, spreading values etc etc. I was wondering if anyone knew of any online guides on the subject?
Regardless, my current problem is this:
With the condition Click on (object) I know MMF selects a single instance of the object, as it should do. I can prove this by changing an alterable value for that object or making it invisible. However if the action is Replace color A with B, it does this for all instances of that object!
Is this a bug? Or am I missing something?
I am using the most up to date version of MMF2Dev (R248).
Thanks in advance for your support.
Re: Problems with Object selecting
it's because all duplicate active objects share the same images in memory (memory-saving feature i'd imagine), and i think replace color actually modifies the stored images
Re: Problems with Object selecting
I guess he was referring to any action designed to an instance. I managed to solve this with a method that I don't know if it is the best (probably not, lol), but it worked for me.
First spread value, let's say value A. How many instances are your working on.. 100? Then go one by one..
if player input, let's say space bar and value A=1, do change direction (Example). Then go the same for A=2, A=3 and so on. If someone has a better idea I'd love to know :)
Re: Problems with Object selecting
yes, as I mentioned the condition seems to work fine, but the action does not. I suspect xyzzy is right and that the template image for the object is changed, which alters all instances.
Re: Problems with Object selecting
xyzzy is correct - all instances share the same image bank so you can't just change one.
Re: Problems with Object selecting
yes.. the good thing is that it doesn't stop an instance to change it's direction or animation, based on its spread value. :)
Re: Problems with Object selecting
Ok thanks everyone. No one knows of any sort of dummy's guide to instance selecting article do they? I've always had trouble with it. I usually just keep playing with it until I get it right, but I've never really understood the rules.
Re: Problems with Object selecting
Quote:
Originally Posted by TotallyTurton
No one knows of any sort of dummy's guide to instance selecting article do they?
I know of two: How the runtime works in relation to multiple instances and MMF Runtime, Object Selection and Fastloops
Re: Problems with Object selecting