User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 12

Thread: ordering objects - is there a list of the current order?

  1. #1
    No Products Registered

    Join Date
    Jan 2014
    Location
    Indiana, USA
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    ordering objects - is there a list of the current order?

    This one has me puzzled. I have a load of graphics in a frame and want to make sure the ordering is correct for what can be seen in front of and behind another. Is there a simple list generated by CTF that shows the ordering or do I have to set this up in every frame and constantly manage what goes where?

    I was hoping layers would take care of this but read differing layers could interfere with objects interacting together. I also thought I could order by a fixed value I assign each object but all I see if order by X value, Y value, or 'move to layer'.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Hello Jarred,
    the layer object usually serves enough for correct ordering,
    but I don't think there's a straight way to get a list out of it.

    However, this should be unneeded,
    because the "sort" command already sorts all objects basing on the value you choose (was it x,y coords. or an alterable value).

    I also thought I could order by a fixed value I assign each object but all I see if order by X value, Y value, or 'move to layer'.
    Yes, you can do the order by a "value you assign" with the layer object and "sort --> by alt. value" of your choice.

  3. #3
    No Products Registered

    Join Date
    Jan 2014
    Location
    Indiana, USA
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ah, the layer object sounds like what I want. Thanks!

  4. #4
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    I didn't undertand if you were already using that or not,
    so I didn't specify more clearly to get that object...
    but now that I know... go take the layer object asap !!
    It's cross-platform, super easy and super useful!

    You'll just need to setup a single action:
    always ---> sort by (parameter) (decreasing/increasing)

    if all your objects are far (top screen) to near (bottom screen)
    as in many game setups,
    all you'll need is "sort by Y position decreasing"

    Layer object rules

  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)
    Objects generally are sorted based on their creation order. This is the same with objects you have already created in the editor (using "Create at Start of Frame" checked in the object's properties). So you can get a good sense of the z order based on this. It is also why it is a good practice to create your objects at runtime, so you are sure of the order.

  6. #6
    No Products Registered

    Join Date
    Jan 2014
    Location
    Indiana, USA
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by schrodinger View Post
    I didn't undertand if you were already using that or not,
    so I didn't specify more clearly to get that object...
    but now that I know... go take the layer object asap !!
    It's cross-platform, super easy and super useful!

    You'll just need to setup a single action:
    always ---> sort by (parameter) (decreasing/increasing)

    if all your objects are far (top screen) to near (bottom screen)
    as in many game setups,
    all you'll need is "sort by Y position decreasing"

    Layer object rules
    I'm definitely using this wrong. As a test I created 'Alterable Value Z' for a few objects and set the Always --> Layer Object --> Increasing sort by alterable value (and again with the decreasing to see what would happen) but the orders don't seem to be changing. Also, am I forced to use the 'Alterable Value A' nomenclature instead of something like 'custom-order'?

  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)
    You need to set the Alt Value to a number (0 being the lowest). Then it will sort 0 in front (or back, you should test this) and the higher numbered Alt Vals will be sorted accordingly. You can change the name of the Alt Value by double clicking it in the object's properties.

    You should try the Sort by Decreasing Y action as well. That will just use the Y position of the object's hotspot and sort higher position values in front. Sort by Increasing Y does the opposite.

    Here is a sample:
    sorting.mfa

  8. #8
    No Products Registered

    Join Date
    Jan 2014
    Location
    Indiana, USA
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow, this is awful. On a whim I set the layer object to sort by value 'F' since it's not at the arse end of the assignment world, and added variables to my objects up to 'Alterable Variable F'. The layer object forces you to use the alterable value positioning instead of calling by name?! I already have a bunch of objects created and this would force me to move all the variables I have set at position 1 to keep this easy. I'm guessing I don't have a choice...

    I can't use the order by Y in my case which is why I was looking for a value based system. I just wish the Layer Object didn't hard code to position and let you sort by user defined names.

  9. #9
    No Products Registered

    Join Date
    Jan 2014
    Location
    Indiana, USA
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, more time than i want to devote. Think I'll try assigning Alterable Value Z to all objects at frame start instead of pre-defining on each object.

  10. #10
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export Module
    Fusion 2.5 (Steam)
    schrodinger's Avatar
    Join Date
    Nov 2014
    Posts
    3,159
    Mentioned
    28 Post(s)
    Tagged
    1 Thread(s)
    Hey Jarred,
    you'll definitely better use alt.value Z (I always use that too... it also resembles "Z index" )
    because it's likely you won't reuse that in all your objects.

    You can't rename that, because each object may have its own proper value names,
    so the layer object wouldn't know which name to address between the many.

    I don't get the problems you are experiencing,
    what's exactly going wrong?

    As a basic guide:

    -set your alterable values Z before sorting
    -refresh your alterable values Z on a "always" basis if you plan to move objects order

    if more than one layer:
    -make sure all objects to be sorted are in same layer (or create stack of objects to be sorted per-layer)
    -make sure you address the correct layer before using the sort-command (always -> set current layer to "XXX", sort by "YYYYYY")

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Is there a current list of extensions?
    By Gibbon in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 12th March 2010, 02:52 PM
  2. Where can I get a current virus definition list?
    By MikeB in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 26th August 2009, 09:19 PM
  3. Ordering lots of backdrop objects problem...
    By mobichan in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 18th May 2009, 06:35 AM
  4. List of all current keys being pressed
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 10th August 2008, 01:06 AM

Posting Permissions

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