The Daily Click ::. Forums ::. Klik Coding Help ::. "bring to front" not working properly
 

Post Reply  Post Oekaki 
 

Posted By Message

Blue66



Registered
  24/05/2008
Points
  1186

GOTW JUNE 2010 WINNER!Hero of TimeVIP Member
23rd October, 2009 at 16:38:08 -

Hi guys!

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?

 
www.paulinthenet.de
www.gungirl2.com

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
23rd October, 2009 at 16:45:52 -

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!

Neuro

Ludologist

Registered
  29/10/2006
Points
  437

Game of the Week WinnerVIP MemberI'm on a BoatPokemon Ball!
23rd October, 2009 at 16:46:34 -

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.

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
23rd October, 2009 at 16:48:21 -

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!

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
23rd October, 2009 at 17:20:20 -

I've never used those commands. All my objects are always in the right order for me.

 
n/a

Blue66



Registered
  24/05/2008
Points
  1186

GOTW JUNE 2010 WINNER!Hero of TimeVIP Member
23rd October, 2009 at 18:02:52 -

Screw this, I've made every eye a seperate object now.

Why is there no real consistency in MMF2... this bothers me the most

 
www.paulinthenet.de
www.gungirl2.com

aphant



Registered
  18/05/2008
Points
  1242
23rd October, 2009 at 19:28:46 -


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..." ?

 

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49566

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
23rd October, 2009 at 19:33:49 -

I never have these problems. Are you sure the objects weren't on separate layers?

You could try moving the always event to the bottom of the event list to make sure nothing else is interfering with it.

 
n/a

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
23rd October, 2009 at 19:45:17 -

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!

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
23rd October, 2009 at 19:45:23 -

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.

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

Blue66



Registered
  24/05/2008
Points
  1186

GOTW JUNE 2010 WINNER!Hero of TimeVIP Member
23rd October, 2009 at 20:14:19 -

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

 
www.paulinthenet.de
www.gungirl2.com

Marko

I like you You like you

Registered
  08/05/2008
Points
  2804

Has Donated, Thank You!Game of the Week WinnerVIP Member360 OwnerDos Rules!Happy FellahCrazy EvilI am an April FoolGingerbread House
23rd October, 2009 at 20:21:42 -

Oh i see, i forgot about new objects appearing in front and i can see why you need the always event. Hope you cabn find a way to get hat you want

 
Image

Subliminal Dreams. . ., daily gaming news and the home of Mooneyman Studios!
www.mooneyman-studios.webs.com

nim



Registered
  17/05/2002
Points
  7233
24th October, 2009 at 03:02:07 -


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)


 
//

Chloe Sagal

under the influence of FUN

Registered
  19/02/2009
Points
  607

Orange
24th October, 2009 at 13:34:49 -


Originally Posted by nim

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)


and if all else fails, use the fire spell.

i am error.

 
Patreon: http://www.patreon.com/chloesagal
Twitter: https://twitter.com/ChloeSagal

Del Duio

Born in a Bowling Alley

Registered
  29/07/2005
Points
  1078

GOTW WINNER CUP 1!GOTW WINNER CUP 2!GOTW WINNER CUP 3!GOTW WINNER CUP 4!Evil klikerHasslevania 2!The OutlawSanta Boot
25th October, 2009 at 03:31:02 -

Ha, awesome. I still need to win AoL.

 
--

"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!
   

Post Reply



 



Advertisement

Worth A Click