I'm just about sick of how MMF2 sometimes screws basic commands up. I have an event that looks like this:
Always
-bring "Body" to front
-bring "Eyes" to front
-bring "Head" to front
-bring "Arm" to front
What I want is, that MMF2 makes an order of these items so that the body is at the back, the eyes come next, the head is painted on top of the eyes and the arm goes above all.
But MMF2 doesn't do it, when I have two eyes. I have one eye at the right spot (beneath head) and one above everything?! Why the hell is beyond me. I've tried it with layer object as well, but no clue why it just screws up this simple event.
I sometimes just hate how inconsistent MMF2 works. With all other commands, it always takes EVERY object and does the event on them, unless I seperate it with spread values or something. But this time when I actually WANT it to take every object of the same, it doesn't do it.
So how can I place the objects in the correct order?
I don't know what you have but would it be possible to create another layer on top of your main and have the body parts set up exactly how you want Z-orderwise and then you'll always have them be at the front of everything?
You'd need to have another object on the main screen (probably invisible) to handle your collisions if you don't have one there already, and always set the body parts' X & Y to that for moving them around.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
I really like the Layer object, can sort all objects by a common alterable value, ascending or descending. You have to keep track of pretty much every active object, but it's worth it for the control you get.
IMO having layers now makes MMF much, much better in every way. I use them for everything now and you're right Neuro the control is amazing. Even for sorting through things with show / hide at designtime at least now I won't have to stare at 300 scattered objects and try to Z-sort them how I want anymore.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
Originally Posted by Blue66 Screw this, I've made every eye a seperate object now.
Why is there no real consistency in MMF2... this bothers me the most
Consistency? Easier said than done. From a programming perspective, it should be easy to make things more consistent. But if there's one thing related to Klik that I know, it's that Clickteam sucks at programming. That, or they haven't been able to quit their day jobs and Klik software is to them what it is to us: A hobby that is only worked on in their spare time.
Isn't there a command that you can use to bring any designated object in front of any specified object? Like "bring in front of..." ?
Yeah there is Adam, you can set any object in front or behind another. Just go to that object you want to move and I think it's under the "order" list. I did this recently when I didn't want my enemies walking behind treasures that were just created.
--
"Del Duio has received 0 trophies. Click here to see them all."
"To be a true ninja you must first pick the most stealthy of our assorted combat suits. Might I suggest the bright neon orange?"
DXF Games, coming next: Hasslevania 2- This Space for Rent!
Can't say i've ever experienced this problem, but surely can you not just bring them to the correct order in the frame editor and then just leave them? A seperate "always" command in the event editor isn't required. Even if you destroy them and want them to be created again, you just create them in the order you want them, with bottom layer first and top layer created last.
Nope, there will be constantly new created objects who will always be in front then, which is not good. And the 'bring before' or 'bring after' does not affect every object of that type either. I think this is just another badly programmed behaviour where I have to do a workaround
Originally Posted by Blue66 Screw this, I've made every eye a seperate object now.
Why is there no real consistency in MMF2... this bothers me the most
You're right, but as far as its ordering goes, I've personally never had any problems or known anyone who has had any problem with this action.
-Make sure that those objects are not on different layers
-Check that those actions are in the correct order
-Filter the events for each object and make sure that there aren't conflicting events (or behaviours)
Originally Posted by Blue66 Screw this, I've made every eye a seperate object now.
Why is there no real consistency in MMF2... this bothers me the most
You're right, but as far as its ordering goes, I've personally never had any problems or known anyone who has had any problem with this action.
-Make sure that those objects are not on different layers
-Check that those actions are in the correct order
-Filter the events for each object and make sure that there aren't conflicting events (or behaviours)