[Request] Proxy Object for global qualifiers
Since it doesn't look like it's ever going to be implemented in MMF2 itself, what about an object that can do it?
I was thinking of an object that could act as a generalisation for many different objects. It ACTS like an active object, basically you can test for collisions, etc. but it is in fact a proxy. This way you could maybe have an identifier value for each group, like say:
(Qualifiers Object) collides with Active Object 3 and (Qualifiers Object) Group(could be a simple alterable value) = 1.
There are a lot of obejcts that have a "Select object" function I notice, that act as a proxy for interacting with the object's X and Y values for examples(the Platform object comes to mind) so maybe this is possible?
There's a particular name for the software pattern that implements this method, I Can't remember. But some developer should know what I'm talking about.
Some way to test for ALL active objects in an event even, and then test for an alterable value which can be used as a group identifier.
Re: [Request] Proxy Object for global qualifiers
Quote:
Since it doesn't look like it's ever going to be implemented in MMF2 itself
Nobody ever said that. All you need to do is switch to a more dynamic approach and create a level editor based system, so that you don't even need more than one frame.
Re: [Request] Proxy Object for global qualifiers
Yeah, but I like MMF's level editor, it's one of the main reasons I've sticked with that over more stable alternatives. Also, you can't place background objects "properly" with that solution, you have to create them as active objects then paste them in, which seems a little wasteful to me.
Re: [Request] Proxy Object for global qualifiers
I was thinking we could set up a small fund, maybe everyone interested could donate $1-5 and whoever manages to get the extension done first gets that small lump sum of money.
Re: [Request] Proxy Object for global qualifiers
Could be interesting to try?
Working on this kind of logic if possible:
(we have renamed the Group object to "Balls", it will be used to hold the various kinds of ball ingame ... ... yeah, I know, just read on, ok?)
[some conditions]
--- Balls: Add 'Blue Ball' to qualifier
--- Balls: Add 'Red Ball' to qualifier
(the above finds all blue and red balls who match the conditions, and adds them to the 'Balls' object's internal list)
Balls: On Colision with Backdrop
--- Balls: Bounce
(The condition tests itself on all the objects in its array. Those matching are returned as having been selected by the condition. The action causes all balls who met the condition to bounce).
Thoughts? Feasible?
Re: [Request] Proxy Object for global qualifiers
I think because of the way the platform objects, it should be easy to at least partially implement this. Even if I had the source for an object that works similar to the active object I might be able to take a look at it, I'm not a programmer but I did it for long enough in college that I could get a better idea of how it might work and forward my ideas to a programmer.
Come to think of it, the active picture object worked a lot like an active object. It seems to be easy enough to re-use the functionality of the active object in extensions, so I don't see why it shouldn't work.
Re: [Request] Proxy Object for global qualifiers
Agreed, it is a workable idea. I would do it, but I am not taking up any more projects right now.
Re: [Request] Proxy Object for global qualifiers
Quote:
Originally Posted by Dines
Working on this kind of logic if possible:
(we have renamed the Group object to "Balls", it will be used to hold the various kinds of ball ingame ... ... yeah, I know, just read on, ok?)
[some conditions]
--- Balls: Add 'Blue Ball' to qualifier
--- Balls: Add 'Red Ball' to qualifier
(the above finds all blue and red balls who match the conditions, and adds them to the 'Balls' object's internal list)
Balls: On Colision with Backdrop
--- Balls: Bounce
(The condition tests itself on all the objects in its array. Those matching are returned as having been selected by the condition. The action causes all balls who met the condition to bounce).
Thoughts? Feasible?
How about:
In Editor: Add both red and blue balls to the "balls" qualifier. I know, there's not one by that name, but bear with me.
[some conditions]
--- Balls: Set flag 3 on
(the above finds all blue and red balls who match the conditions, and adds them to the 'Balls' with flag 3 on)
Balls: On Collision with Backdrop
+Balls: Flag 3 is on
--- Balls: Bounce
(The condition tests itself on all the balls, but filters it to only ones with flag 3 on. This causes all balls who met the previous condition to bounce).
?
EDIT: I admit, I did make a runtime qualifier object for MMF1.5, but it actually just added 32 flags to the objects and set them for adding to a group and cleared them for removing them from a group. It didn't allow itself to be tested for in collisions and so on because it was far too hard.
Re: [Request] Proxy Object for global qualifiers
You could probably do a really crappy version of my idea using a bunch of normal active objects that work kind of like sensors and passing the values between them. It wouldn't work very well though.
Re: [Request] Proxy Object for global qualifiers
Re: [Request] Proxy Object for global qualifiers
:( Anywhere else have a larger volume of extension developers?
Re: [Request] Proxy Object for global qualifiers