Brain [censored] : Specific Choose Event
So i am always spreading values of two object, a & b
They go in pairs soo 1a/1b 2a/2b, etc If one of the pairs is missing i want the other pair to destroy itself. I have found the pick objects whose alterable values = X, but this choose all objects. I want to be able to choose object a or b.
Tips on how to acheive goal?
Also I think i remember doing this once with the Select Object Extenesion sooo..
Re: Brain [censored] : Specific Choose Event
When you destroy one of the objects in the pair, you could set the destroyed object's spread value to a counter (before you destroy it) and then use a ForEach/fastloop to check all your other objects and compare their values to the counter. If they match, destroy them as well.
Re: Brain [censored] : Specific Choose Event
Ok thanks, now i have another problem
Say i have 3 objects that are not on the ground (not overlapping qualifier a)
I want to make it so tht all of these objects raise their y position until they hit a qualifer a. These objects are at different heigts so if one of the objects hits the ground, i want all of the ones that havent hit the ground yet to keep on moving until they do.
So far, i havent gotten anything close to this.
Re: Brain [censored] : Specific Choose Event
That would depend on how you move your objects? Are you using clickteam movements? Or moving them with code that updates their position?
Re: Brain [censored] : Specific Choose Event
I move my objects with clickteam movements. If it were possible i would use fastloops but, i get numerous bugs when trying to attempt this. As a result, i just stick with the clickteam movements. I know that if i use fastloops, more things would be customizable (is that a word?). However more bugs come up in me trying to create a fastloop than with the clickteam movements.
Re: Brain [censored] : Specific Choose Event
Well, you might want to be prepared for glitchy results if you stick with clickteam movements in this case. The simplest way I can think of would be to use the ForEach object when one of your objects "Is Overlapping Qualifier A". Just use the "Stop command if the object is overlapping. The code would look something like this:
+Object is overlapping Qualifier A
-Start ForEach loop "blah"
+On ForEach loop "blah"
+If fixed value of object = current loop iteration fixed value
- Stop (under "movement" actions)
I haven't tested it, but it should give you an idea on how to proceed.
Mobichan
Re: Brain [censored] : Specific Choose Event
Oh man i didnt even realize that this it extenstion was missing from my extension list. I'll get it and start tinkering with it. I i cant get my desired results then i guess i shall have to use fast loops.
Should both fail, i shall come back here. Thanks for ze input mobichan
Re: Brain [censored] : Specific Choose Event
Ok i've played with the ForEach object, and i have gotten it to work.
Now the only probrm is this: After it hits the "ground" and moves off of it (no longer overlapping qualifier a which should start the loop all over again) it keeps moving left/right until all instances of the object are no longer overlapping it. It works the first instance (at the start of the frame when all instances are above ground) but it doesnt work the 2nd instance.
Im soo close to the finish line i can smell the Apple Pie
Re: Brain [censored] : Specific Choose Event
It is kind of hard to understand what you are trying to do. You might need to post an example of your file so we can take a look at it.
Re: Brain [censored] : Specific Choose Event
View MFA
I dont quite know why it looks so funny, but all of the key componets should be there.
The code that i am talking about should be at the end of the group name "Goomba"