User Tag List

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

Thread: Having problems with fastloops and arrays

  1. #1
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Having problems with fastloops and arrays

    I have a maze making game that I'm trying to get to save your maze. So far I've just been working on the "right" pieces. I recently found that it saves differently every time. Hopefully it's something easy that someone can solve. I posted my problems with more detail here:
    http://theclickteam.com/epicenter/ubbthreads.php?ubb=showflat&Number=124315#Post1243 15
    Attached files Attached files

  2. #2
    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: Having problems with fastloops and arrays

    Since there can only be one piece per square just save each array value to a number 1-10 to represent the piece that is there.
    Working as fast as I can on Fusion 3

  3. #3
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having problems with fastloops and arrays

    I don't think I get how to do that - how would i tell where the piece would go? Alterable values? How would I load them?

    Really liking the idea. Please just help me follow what you had in mind.

  4. #4
    Clicker Fusion 2.5 (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)

    Join Date
    Nov 2007
    Posts
    456
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having problems with fastloops and arrays

    Quote Originally Posted by RickyRombo
    I don't think I get how to do that - how would i tell where the piece would go? Alterable values? How would I load them?

    Really liking the idea. Please just help me follow what you had in mind.
    Make a 2D array that has the same number of rows and columns as the tiles in your maze. In each cell, store a number from 1-10, depending on the tile in the corresponding place in the maze.

    So if the top-left tile is a solid wall, set cell 0,0 to 1. If the next one is a right-angled corridor, set cell 1,0 to 2. And etc. A different number for each type of tile

  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: Having problems with fastloops and arrays

    If you would like, check the World Creator on my website. It has an editor for building your world, and play screen for character placement. It uses an array with fastloops and a string parser. Maybey ou can get some hints from the coding and documentation.

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

  6. #6
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having problems with fastloops and arrays

    I get that part of it, what really has me puzzled is how am I going to load it. I'm thinking I would say...

    *OnLoop("load")
    +CurrentXY("Array")=1
    -Create ("right")
    -("right") Set X to CurrentXPos("Array")x(the size of my tiles)
    - " " Y " CurrentYPos " "

  7. #7
    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: Having problems with fastloops and arrays

    In the creator there is also a loading routine.
    ​458 TGF to CTF 2.5+ Examples and games
    http://www.castles-of-britain.com/mmf2examples.htm

  8. #8
    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: Having problems with fastloops and arrays

    OK, I made this as an example for you but for some reason the loading isn't working right, I think I know why but it usually doesn't happen...
    Attached files Attached files
    Working as fast as I can on Fusion 3

  9. #9
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having problems with fastloops and arrays

    Ok I looked at that and it seems a little harder than what I had going, though I'd rather do that so I don't have to try and figure out whats wrong with mine. I think it isn't loading from the right cells, that by using the fastloops to tell where to load from, its moving diagonal or something. I'm not sure though, what does everyone else think?

  10. #10
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module
    RickyRombo's Avatar
    Join Date
    Mar 2008
    Location
    Somewhere between here and there
    Posts
    3,167
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Having problems with fastloops and arrays

    Quote Originally Posted by nivram
    In the creator there is also a loading routine.
    Huh? What do you mean?

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Having problems with inis and arrays...
    By Joeyjoejoejrshabadoo in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 6th November 2011, 07:33 PM
  2. Fastloops
    By Solgryn in forum Android Export Module Version 2.0
    Replies: 1
    Last Post: 4th August 2011, 07:28 PM
  3. Arrays, fastloops and floating point
    By Tiles in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th January 2008, 09:31 AM
  4. Fastloops
    By MechatheSlag in forum Multimedia Fusion 2 - Technical Support
    Replies: 11
    Last Post: 21st June 2007, 09:22 PM
  5. For "Movement Engine Problems" thread - fastloops
    By DavidN in forum File Archive
    Replies: 0
    Last Post: 23rd May 2007, 03:29 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
  •