User Tag List

Results 1 to 4 of 4

Thread: Infinite virtual frame scrolling and keeping objects in place

  1. #1
    Forum Moderator Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleMac Export Module
    AndyH's Avatar
    Join Date
    Jun 2006
    Location
    UK
    Posts
    1,445
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Post Infinite virtual frame scrolling and keeping objects in place

    Scrolling in Fusion is really easy. Adding virtual scrolling on the frame and layer to create the appearance of infinite scrolling is easy too. However, the layers wrap horizontal and vertical properties only affect background objects on the layer. Active objects stay in their original position and can be left behind as you scroll away from them.

    Virtual Scrolling.mfa

    This example offers a solution to keeping everything in view and bringing the active objects in their virtual positions. The player object has a behaviour with all of the events, there's not many need to get this working...

    The Frame is set to twice the height and width of the window, but it could be any size. The layer has a virtual height and width that is three times the size of the frame and has wrapping switched on. The player is kept in the middle area of the virtual frame.

    The active objects, in this case the treasure, are kept within half the frame height and width distance from the player and this keeps them in their correct location as you scroll around the infinite world. To make it easier (and thanks to the DLC+) a group qualifier is used for the treasure and this qualifier can be added to other objects to keep the same behaviour.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export ModuleMac Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Tisnart's Avatar
    Join Date
    Feb 2008
    Location
    On, Canada
    Posts
    1,029
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Nice!
    Thanks for the great example.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleXNA Export Module

    Join Date
    Jan 2013
    Location
    Collogne
    Posts
    31
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Cant open the file with the NEWEST version of Clickteam Fusion 2.5 Developer:
    It says: This file cannot be loaded it has been created with a newer version of this product

  4. #4
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    12,750
    Mentioned
    61 Post(s)
    Tagged
    2 Thread(s)
    This MFA contains features of the 2.5+ DLC (qualifiers in behaviors), that are not compatible with the normal version of Fusion. I can be opened only with 2.5+ (= 2.5 with the 2.5+ DLC)

Similar Threads

  1. Infinite scrolling with active objects.
    By Vilhjalmr in forum Fusion 2.5
    Replies: 1
    Last Post: 15th July 2018, 01:24 PM
  2. Replies: 6
    Last Post: 16th March 2016, 09:01 PM
  3. Replies: 0
    Last Post: 14th May 2014, 07:01 PM
  4. Quasi-infinite virtual size?
    By EE in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 12th April 2011, 05:53 PM
  5. Objects acting weird in the virtual frame
    By Monokkel in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 24th October 2010, 10:41 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
  •