User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 20 of 20

Thread: Array Level Builder (variation on my old editor that used ini)

  1. #11
    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
    Aug 2006
    Location
    USA
    Posts
    2,970
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Yeah that should work fine if you're just using the "restart frame" event, the paste object is set to global so it will remember your value change when restarting. If you want, you could also just put the loading events in a group that you activate and deactivate as needed, but that will require additional events to clear the pasted objects and reset whatever values you need to reset upon loading the next level. I think for most purposes, simply restarting the frame is probably easiest, just depends on what exactly you're doing and if you don't want to reset everything by restarting.

  2. #12
    Clicker Fusion 2.5
    Jocastus's Avatar
    Join Date
    Jan 2008
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Unless I've consistently made the same mistakes, global objects do not preserve their data when a frame is restarted. They do when it changes from one frame to another, but not if the frame they're part of ends or resets. I can work around this by using global values instead, but in case anyone else has had a similar issue, here's my experience.

  3. #13
    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
    Aug 2006
    Location
    USA
    Posts
    2,970
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You are correct, sorry about that. Using the restart frame event does reset a global active's values.

  4. #14
    Clicker Fusion 2.5
    Jocastus's Avatar
    Join Date
    Jan 2008
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    A possible workaround that I have not tried yet: Instead of resetting the frame, "jump to" a frame whose only start of frame command is to jump back to the last frame. This would effectively reset the original frame without using the resent command.

  5. #15
    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
    Aug 2006
    Location
    USA
    Posts
    2,970
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I did a quick test, and jump to frame actually works. So you could jump to the same frame and it doesn't reset the value on a global active.

  6. #16
    Clicker Fusion 2.5
    Jocastus's Avatar
    Join Date
    Jan 2008
    Posts
    96
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wonderful. Once again, this is an extremely useful piece of code to me, and I appreciate your sharing it.

    One additional note: I use this code a lot more for pasting objects in as active objects, sometimes pasting the object into the background after and destroying that object, sometimes not. In your example the code to change the position and layer of a newly pasted object occurs in that specific object's column, but it can more conveniently be placed in the Group.Obstacles column. If you do so, the repositioning of the newly created object will still apply only to that object, and the code itself can be more easily reused for addition objects. This way, only the create object line, which must stay at the top of the action list, needs to be changed for each new object coded in.

  7. #17
    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
    Aug 2006
    Location
    USA
    Posts
    2,970
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    That's a good idea. One of the things I like about MMF, there's a lot of different ways to do things and optimize them. I'm glad you are getting use out of this and finding even better ways to do things!

  8. #18
    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)
    Hi Shawn, this is a brilliant example file. I have an idea for a modification that is now possible in Fusion, I'll see if it works and post it up.
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

  9. #19
    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
    Aug 2006
    Location
    USA
    Posts
    2,970
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Great, can't wait to see it!

  10. #20
    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)
    Success - will post it!
    Andy H @ ovine.net
    Awful Jokes - a new cartoon every day: http://awful.ovine.net/
    Ovine's games: http://www.ovine.net

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Replies: 5
    Last Post: 3rd January 2014, 09:08 AM
  2. Level editor that uses MMF2's own frame editor
    By Shawn in forum File Archive
    Replies: 35
    Last Post: 9th November 2013, 07:34 PM
  3. Make level editor array work
    By LittleTinyBabyMan in forum Multimedia Fusion 2 - Technical Support
    Replies: 8
    Last Post: 29th May 2012, 05:47 PM
  4. Array Level Editor
    By DJ_Wild in forum File Archive
    Replies: 14
    Last Post: 30th September 2007, 04:59 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
  •