User Tag List

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

Thread: Layers

  1. #1
    No Products Registered

    Join Date
    Oct 2008
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Layers

    Ok, so I'm working on my first project with layers, and I want to get a few things answered first.

    1. do objects in one layer inteact with another? (i.e, if active collide with background then stop. will it still work if the active and background are on different layers?)

    2. if an object from layer one shoots an object from layer two, is the bullet going to be on layer one or two?

    thanks for your help.

  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: Layers

    Objects on separate layers don't interact with each other. However, if you do want them to interact when they collide, you can either use an additional collision detection object on the layer of the second object that always sets itself to the position of the first, or you can check for "collisions" by looking at the objects' X and Y coordinates instead.

    And I think that when an object is created using the Shoot/Launch an Object commands, it originates on the same layer as the object that shot it - the initial layer of the object in the frame editor doesn't matter. (Again, if this isn't what you need, I think that shot objects still respond to the Change Layer action in the Layer object.)

  3. #3
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers

    Yeh objects on different layers sohuld interact with eachother.
    Be careful with layers as they can slow down your game quite a lot, especially in non HWA version.

  4. #4
    No Products Registered

    Join Date
    Oct 2008
    Posts
    76
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers

    thanks, and how many do you suggest I limit myself to? I only have 3 so far.

  5. #5
    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: Layers

    It depends on what you're doing with them. Massive levels with multiple scrolling coefficients will have problems, but I'm using about fifteen for individual windows on a menu screen and it doesn't cause any problems at all.

  6. #6
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers

    Quote Originally Posted by bigredron
    Yeh objects on different layers sohuld interact with eachother.
    Whoops! That should say;
    Yeh objects on different layers shouldn't interact with eachother.

  7. #7
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers

    Quote Originally Posted by DavidN
    It depends on what you're doing with them. Massive levels with multiple scrolling coefficients will have problems, but I'm using about fifteen for individual windows on a menu screen and it doesn't cause any problems at all.
    15 layers? Wow I only ever use 1 layer. Am I crazy?

  8. #8
    Clicker Fusion 2.5 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Fusion 2.5+ DLC (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers

    Quote Originally Posted by bigredron
    Quote Originally Posted by DavidN
    It depends on what you're doing with them. Massive levels with multiple scrolling coefficients will have problems, but I'm using about fifteen for individual windows on a menu screen and it doesn't cause any problems at all.
    15 layers? Wow I only ever use 1 layer. Am I crazy?
    Layers work really well for menus and HUD's you want to display over the actual game itself. Don't have to mess with object orders and whatnot. It will always display on top if you have it on an upper layer.

  9. #9
    No Products Registered

    Join Date
    Apr 2009
    Location
    Russia
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Layers

    If I have 1024*768 resolution in my game and about 7-9 layers on massive level (about 5*(1024*768)) - will it cause many lags and slowdown?

  10. #10
    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: Layers

    I would probably use the HWA version for that - though you never know, if they don't have to scroll independently of each other it may work fine.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Layers - Low fps! Paralax Alternative to layers?
    By iamjot in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 6th June 2013, 03:34 AM
  2. Collision issue with layers, also still having slowdown problems (with layers)
    By jregork in forum iOS Export Module Version 2.0
    Replies: 8
    Last Post: 28th July 2012, 06:23 AM
  3. Layers again
    By Jarzka in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 8th October 2006, 06:42 PM
  4. layers bug
    By Ross in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 29th July 2006, 09:35 AM
  5. Layers
    By xerus in forum Multimedia Fusion 2 - Technical Support
    Replies: 27
    Last Post: 1st July 2006, 02:34 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
  •