User Tag List

Results 1 to 7 of 7

Thread: Objects not visible in top 2 layers of a frame?

  1. #1
    No Products Registered

    Join Date
    Nov 2013
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Objects not visible in top 2 layers of a frame?

    I noticed something in my frame. I have several layers (totalling 7). When I put any object (created or dragged from other frames) in either the topmost or 2nd from top layer, they are invisible. From the 3rd layer to the bottommost layer, they are visible. I have no events yet in this frame.

    What could be the source of this issue? I think I did not tinker with the settings of any of the layers but I don't know..........

    Edit:
    Yes, I have "Visible at start" checked for all layers and also all objects ("Create at start" is also checked) and what's funny is that I have objects in all layers already visible. It's just that when I add any new object NOW in top 2 layers, they become invisible when the frame is run while the older existing objects are still visible.

    What might have been the problem with the top 2 layers?

  2. #2
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    944
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    It sounds to me like you do have some of the layers checked 'hidden'.

    From the View part of the menu, check the layers toolbar and all the layers will be shown on the right side of the screen. From there you can set them to visible / hidden / or locked if you want.

  3. #3
    No Products Registered

    Join Date
    Nov 2013
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, I have all layers unlocked and all are visible too. But regarding what you said, even if I click the eye icon to make it invisible, it is only invisible in the frame editor, when I run it, the layer is still visible. What makes a layer invisible is when you check the "Visible at start" of layer settings of each layer. I have tried unchecking all layers leaving either the top or 2nd from top layer as the only visible layer, they work (layer becoming invisible), but the problem with the objects' visibility is still there. I'm really dumbfounded as regards to this problem.

    Edit:
    Dude, if it isn't a big favor, can I also ask for some help in the other thread regarding ForEach object?

  4. #4
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Check the scrolling coefficients. If you have them set different from 1 and your game is set to scroll somewhere else on start, it can appear that your objects aren't there. Also see if you have the Layer Object in frame, as that object has the ability to hide and show layers at runtime.

  5. #5
    No Products Registered

    Join Date
    Nov 2013
    Posts
    97
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    hi, thanks for the replies.

    I found out that the problem isn't really about layers. It's about the number of objects limit per frame/level. I changed it to higher than the default 500 and it works.

    I do however discovered another issue after fixing that. My layers are like this (in order):

    front fence (should be "over" all other sprites/objects)
    player's level
    floors/other obstacles level (obstacles/floors are just solid color bars active objects)
    actual stage sprite (single sprite so I had to use floor/obstacle active objects)
    parallax1 (building)
    parallax2 (mountain farther than building)
    parallax3 (sky behind mountain)


    The player can't detect the floor/obstacles objects because they were in another layer. So I had to combine them. Is this really how it should be? or it's just working like this for me?

    And about the X and Y Coefficients, if I set them to less than 1 like 0.7 (and assuming the scrolling is centered on main player always), does that mean that for every pixel the player moves, that specific layer will only move 0.7 (70%) of a pixel and on the flipside, also scroll faster when the coefficient is higher than 1? I'm experimenting on the values but it seems weird that when I run the frame, before I even move the player, the parallax are already "moved" from where they were in the frame editor.

  6. #6
    Clicker Fusion 2.5
    Del_Duio's Avatar
    Join Date
    Sep 2008
    Location
    Cygnus X-I
    Posts
    944
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    ^^ Yeah, you can only test collisions for 2 objects that are on the same layer, that's true ^^.

  7. #7
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A handy workaround for the layer collisions is to have a separate collision mask object on a different layer and set its position to = your player, and then check teh other layer collisions using that instead.

    If you make your objects actives, you can use the layer object's feature Always: Sort by Y Descending to automatically make objects with a higher Y coordinate appear in front of others

Similar Threads

  1. Collision outside visible frame
    By Fanotherpg in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 4th April 2012, 11:46 PM
  2. Almost objects aren't visible in sub-app
    By ASD in forum Hardware Accelerated Runtime
    Replies: 0
    Last Post: 13th November 2011, 05:51 AM
  3. First animation frame not visible
    By ASD in forum File Archive
    Replies: 0
    Last Post: 29th January 2011, 07:00 PM
  4. Actives visible out of frame
    By Brandon in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th August 2007, 01:49 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
  •