User Tag List

Results 1 to 9 of 9

Thread: Add Backdrop goes nuts in middle of a fastloop

  1. #1
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF 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)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    1,013
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)

    Add Backdrop goes nuts in middle of a fastloop

    Hello,

    I am trying to generate random terrain by running a fastloop at the start of the frame, like this:

    * Set up a frame 10 000 x 480 pixels
    * Create one active object and call it terrainObject, size: 1x300pixels

    Then create 2 events:
    + Start of frame
    - Run loop "level" 9 999 times.

    + On loop "level"
    - terrainObject: Set position X to itself + 1 pixel.
    - terrainObject: Add backdrop as obstacle.

    Add an event for you to scroll the frame area then run the app.

    The terrain is fine for the first 1000 pixels or so, but suddenly it goes invisible. The colision mask is there though, since the player can walk above were the terrain was supposed to be.

  2. #2
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Add Backdrop goes nuts in middle of a fastloop

    When you Add Backdrop, you're actually creating a backdrop object that has to get rendered every time the camera scrolls. MMF can only handle so many backdrop objects, so it's probably limiting the amount you can create.

    You gotta use paste into background instead. Unfortunately, it'll disappear when you scroll away.

    If you gotta have scrolling, I'd use the Overlay Redux object instead of MMF's background functions.

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF 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)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    1,013
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)

    Re: Add Backdrop goes nuts in middle of a fastloop

    Really? I didn't know there was a limit to backdrops. Does that just go for backdrops created during runtime? Does someone here know of how many I can create?

    As for the problem, I guess I could use paste to background, I'll just have to make the game generate the level at runtime instead of at the beginning. It'll work since the player can't go back to were he once left anyway.

    Thanks for the tip!

  4. #4
    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: Add Backdrop goes nuts in middle of a fastloop

    The limit is the same as for active objects - increase the object count in the frame properties and you should be able to get more of them.

  5. #5
    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,773
    Mentioned
    12 Post(s)
    Tagged
    0 Thread(s)

    Re: Add Backdrop goes nuts in middle of a fastloop

    UltimateWalrus, I didn't think the overlay redux supported scrolling.

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

  6. #6
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF 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,073
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Add Backdrop goes nuts in middle of a fastloop

    chrilley,
    I made you an example here

  7. #7
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    UltimateWalrus's Avatar
    Join Date
    Jul 2006
    Posts
    824
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Add Backdrop goes nuts in middle of a fastloop

    Quote Originally Posted by nivram
    UltimateWalrus, I didn't think the overlay redux supported scrolling.

    Marv
    You gotta use the Active Overlay object. I forgot to mention that

  8. #8
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCHTML5 Export ModuleiOS Export ModuleSWF 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)
    chrilley's Avatar
    Join Date
    Jul 2006
    Posts
    1,013
    Mentioned
    17 Post(s)
    Tagged
    1 Thread(s)

    Re: Add Backdrop goes nuts in middle of a fastloop

    It's alright guys, Paste to background will suffice, I got it working just as I want it.

    Quote Originally Posted by gerald999
    chrilley,
    I made you an example here
    That's pretty much the method I used before but it doesn't work well for the pixel size I'm after. I want a non-blocky level, more like smooth terrain, with hills and such. I should probably have mentioned that in the first post. Thanks anyway for taking time making an example

  9. #9
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF 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,073
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Re: Add Backdrop goes nuts in middle of a fastloop

    I guess I must of misunderstood what you wanted, but i'm glad you got it working

Similar Threads

  1. [RC3] debug log going nuts!
    By Bipolar_Games in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 9th December 2012, 04:29 PM
  2. My Application size is nuts!
    By King_Cool in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 22nd August 2012, 11:16 PM
  3. Middle mouse button
    By Fanotherpg in forum SWF/Flash Export Module Version 2.0
    Replies: 4
    Last Post: 8th March 2010, 08:47 AM
  4. (lua+) argh this is driving me nuts
    By xyzzy in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 13th April 2008, 04:57 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
  •