User Tag List

Page 3 of 3 FirstFirst 1 2 3
Results 21 to 29 of 29

Thread: Resizable array?

  1. #21
    Clicker Multimedia Fusion 2SWF Export Module
    Jacob's Avatar
    Join Date
    Jul 2007
    Location
    Second pixel to the right
    Posts
    3,208
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Resizable array?

    Nifflas' editor is http://nifflas.ni2.se/?page=Multimedia+Fusion+2 listed under Simple Level Editor.

  2. #22
    Clicker Fusion 2.5
    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)
    JimJam's Avatar
    Join Date
    Jun 2006
    Location
    USA
    Posts
    353
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Resizable array?

    I havent had much time to work on my level maker. But just a quick note about the "Limit of bytes"

    If you say a byte for tilesets is limited to only 255 tiles, thats not true. Just do what I did. Use two bytes for the value of each tile, add them together, and you now have 510 tiles per sheet to work with.

    For more, increase number of bytes used.

    The alternative method to use (which I use for my game objects) is to have one byte record which tileset image to use (a number of 255) and then use the next byte for number of the tile from that sheet (of 255).

    Now any given tile on the map can be one of 1,375 different tiles in your game library. Again, use a 3rd byte and add it to the "Images" byte, and you have 130,050 tiles to work with.

  3. #23
    Clicker Multimedia Fusion 2Install 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)

    Join Date
    Jan 2010
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Resizable array?

    ...Seriously?

    Multiply the second byte by 256, and then add it to the first. In only two bytes, you can now store 65535 possible tiles (plus blank).

  4. #24
    Clicker Fusion 2.5
    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)
    JimJam's Avatar
    Join Date
    Jun 2006
    Location
    USA
    Posts
    353
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)

    Re: Resizable array?

    Oops. Yeah I messed up my math. I meant to use pow2, but I pressed Times 2 on my calculator. Looking at that post again, I don't even know how I got those numbers.

  5. #25
    Clicker 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)

    Join Date
    Feb 2007
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Resizable array?

    Ahhh! Yup. that'd solve it.

  6. #26
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Resizable array?

    You could just use a short instead!

  7. #27
    Clicker Multimedia Fusion 2Install 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)

    Join Date
    Jan 2010
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Resizable array?

    Yes. =P
    But that's so much stuff to replace, especially considering some formulas that determine the position in the file, based on it using bytes.
    And as I said, in my case, I don't *need* more than 255 tiles. Especially when there's two layers that are both below everything else available, already allowing 510 background tiles.

  8. #28
    Clicker Multimedia Fusion 2 DeveloperSWF Export Module

    Join Date
    Jun 2006
    Posts
    6,773
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Resizable array?

    Quote Originally Posted by Namida
    considering some formulas that determine the position in the file, based on it using bytes.
    So how is your multiplication method any better than just using a short in the first place? They're both two bytes..

  9. #29
    Clicker Multimedia Fusion 2Install 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)

    Join Date
    Jan 2010
    Posts
    86
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Resizable array?

    I'm not the one considering a two-byte system though, I'm perfectly happy with single-byte. =)

Page 3 of 3 FirstFirst 1 2 3

Similar Threads

  1. Dynamic Array - Sort 2 dimension array by Column 1
    By Ryan in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 16th December 2012, 04:54 AM
  2. Array... help!
    By Aasland in forum iOS Export Module Version 2.0
    Replies: 10
    Last Post: 12th April 2012, 01:14 AM
  3. resizable swf
    By Pompos in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 17th October 2011, 11:12 AM
  4. Dynamic Array to Binary Array problems
    By BREK in forum Multimedia Fusion 2 - Technical Support
    Replies: 4
    Last Post: 22nd March 2010, 10:48 PM
  5. [Request] Array of array - possible for $$$
    By Blizna in forum Extension Development
    Replies: 9
    Last Post: 29th December 2007, 11:13 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
  •