User Tag List

Results 1 to 9 of 9

Thread: Infinite scrolling help needed

  1. #1
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Infinite scrolling help needed

    In the past, I've done infinite scrolling on a shmup simply by reseting the position of the character back every time it reaches a single point. However, this time, my background layers are at different scrolling ratios, causing a little 'jitter' back and forth between two camera positions on it, never completely scrolling through the background landscapes. How do I avoid this? is there a better way to do this?

  2. #2
    Forum Moderator

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    nivram's Avatar
    Join Date
    Jul 2006
    Location
    Bandon, Oregon
    Posts
    6,782
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Infinite scrolling help needed

    Maybe set virtual width to -1 in the frame propeties?

    Marv
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  3. #3
    Clicker Multimedia Fusion 2SWF Export Module

    Join Date
    Sep 2006
    Posts
    1,546
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Infinite scrolling help needed

    you could just make sure that the size of your level is an exact multiple of the LCM of all your layers' coefficients. Then they should all be synced up when you return to the beginning.

    If you have a 1.0 layer, a 0.5 layer, a 0.25 layer, and a 0.1 layer, all on a 320 width frame, they would repeat every 320 pixels, 640 pixels, 1280 pixels, and 3200 pixels.

    your screen could than be any multiple of 6400 pixels, ie 6400, 12800, 19200, so on. It would sync up at that exact mark. Play around with it

  4. #4
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Infinite scrolling help needed

    That ends up with the same results, only now with graphical glitches


    Edit: This was typed before I saw Pixelthief's comment.

  5. #5
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Infinite scrolling help needed

    @pixelthief:
    I suppose I could do that, but I think it would be rather wasteful, considering the ammount of backdrop objects it would imply (the scrolling ratio on the background is 1/20 of that of the foreground)

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Infinite scrolling help needed

    If you do what nivram suggested, you will also need to check Wrap Horizontally/Vertically in the Layer Properties for the best results. Then, as long as the end of background matches the beginning of the background, it will scroll seamlessly. IIRC this method only loops the background however, all the active objects in the frame maintain their original positions.

  7. #7
    Clicker Multimedia Fusion 2 Developer

    Join Date
    Mar 2009
    Location
    Bethesda, MD
    Posts
    234
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Infinite scrolling help needed

    It works! Much appreciated.
    However, I would like to understand exactly how this whole thing works. What does "virtual width" do?

  8. #8
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Jaffob's Avatar
    Join Date
    May 2008
    Location
    USA
    Posts
    1,833
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Infinite scrolling help needed

    I think Virtual Width/Height are the boundaries for scrolling (or something like that). When you set them to the dimensions of the frame, they cause scrolling to act as it usually does, i.e. "the scrolling stops at the edges of the frame." If you set one of them to -1, it means no boundary, resulting in infinite scrolling.

    I've only ever set them to either the frame size or -1 in any game; I've never really found a use for any other values.

  9. #9
    Clickteam Clickteam
    LB's Avatar
    Join Date
    Jun 2007
    Location
    Richardson, Texas, North America
    Posts
    8,937
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Infinite scrolling help needed

    If you change the Virtual Width and Virtual Height, you are changing the size of the zone that MMF2 considers as the Frame Area. If your Virtual Width and Virtual Height are smaller or larger than your frame size, then scrolling, and object inside/outside/leaves/enters will no longer match the Frame's actual size. -1 would wrap around to an extremely high number, so that is why it works.
    Working as fast as I can on Fusion 3

Similar Threads

  1. Infinite Background Scrolling
    By Sumo in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 21st July 2017, 06:56 PM
  2. Infinite Scrolling problem
    By LostFoundry in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th November 2011, 09:51 PM
  3. infinite scrolling of thumbanils?
    By mega21 in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 12th November 2011, 03:50 AM
  4. Replies: 4
    Last Post: 15th July 2010, 01:16 AM
  5. Infinite scrolling on a schmup
    By pikzilla in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 28th February 2010, 05:50 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
  •