User Tag List

Results 1 to 7 of 7

Thread: draw order question...

  1. #1
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    draw order question...

    So, I have been trying to use the arrange command to get my sprite objects to draw in the correct order. But I seem to have one object (a counter) that won't allow me to move it forward or back. All the commands are grayed out. Has anyone run into this before and is there a workaround?

    Mobichan

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: draw order question...

    Well, I don't know if I dare say this given this thread right below, but... have you unchecked Display as Background?

  3. #3
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: draw order question...

    Well shoot me in the head... no sooner did I start reading the post below, I tried unchecking it and I have sorting order control again.

    I have to agree with the ranters in the other post. I am a relatively new user (2 months now) and I am often burned by specific boxes being checked by default. Maybe I haven't worked out a good routine/workflow for using MMF2, but I have yet to find an actual use for the "save as background" option. I'm sure the veterans have learned to live with unchecking some things out of habit, but I like the suggestion about having preference control.

    Now that I have searched through the help file and the wiki, I actually can not find ANY info about what this option does. The only reference to "Display As Background" is in the Active Object - Actions section of the help file. And it actually makes a direct reference to my problem. But I have to say that unless you know to look there, it is pretty useless to a new user. But to avoid this post becoming a seedbed for ranting, let me just say that that is just my opinion...

    mobichan


  4. #4
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: draw order question...

    i'm not entirely sure, but i think 'display as background' just draws your objects like a backdrop object, which are supposedly faster to display than active objects or the like

    all objects above layer 1 are drawn like active objects (even backdrops), which is slower but i think there's no other choice since the display buffer could get completely trashed if backdrops were drawn "normally"

    and of course, an object with DaB enabled can't be reordered above actives since backdrops can't (unless they're on a higher layer, which in that case MMF probably ignores DaB entirely)

    i could be totally wrong, though

  5. #5
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: draw order question...

    Even though I can change the draw order, it seems to not be working at runtime. I thought that setting the order when creating the objects would work, but it doen't seem to always do the trick.

    Does anyone know if you can set an object's exact number position in the draw order? or if you can retreive that info and set it to a counter?

    I have a case where I have 3 objects that I need in a specific order. I can get them to display in the proper order by:

    +create the farthest object
    +bring to BACK
    +create middle object relative to that first object
    +move middle object in front of the farthest object
    +create nearest object relative to the middle object
    +move nearest object in front of middle object

    But now my player object (which sits in the frame at #4 in the draw order) appears behind my middle object. I have also been trying to get my enemy bullets to appear on top of everything, but they seem to end up in the middle of the sort order.

    Can anyone explain how the order is handled when you Create active objects through code?

    Mobichan

  6. #6
    No Products Registered

    Join Date
    Aug 2006
    Posts
    984
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: draw order question...

    the layer object lets you move objects to a specific z-index

    i believe newly created objects are automatically moved to the top of the z-order (on their own layer, anyway)

  7. #7
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleUnicode Add-on
    mobichan's Avatar
    Join Date
    Oct 2007
    Location
    Buffalo, NY
    Posts
    3,310
    Mentioned
    28 Post(s)
    Tagged
    0 Thread(s)

    Re: draw order question...

    Thanks for pointing out the layer object. That's just what I needed.

Similar Threads

  1. Draw Object Question
    By Earl in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 18th December 2010, 09:07 PM
  2. Draw object question
    By ASD in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 6th June 2009, 07:24 PM
  3. question about draw object
    By Attus in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 28th August 2008, 12:16 AM
  4. question about draw object
    By Attus in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 21st July 2008, 02:22 AM
  5. question about the draw object
    By Jikito in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 3rd February 2008, 05:58 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •