User Tag List

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

Thread: How to create a self organized itens selection?

  1. #11
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Too busy to make one - but this example demonstrates the concept really well and would be very easy to adapt for your game.

    Inventory.mfa

  2. #12
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Decoamorim's Avatar
    Join Date
    May 2013
    Location
    Florianópolis, Brazil
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah.... i had not much sucess so far

  3. #13
    Clicker

    Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    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)
    DaveC's Avatar
    Join Date
    Jun 2007
    Location
    Perth, Australia
    Posts
    2,132
    Mentioned
    16 Post(s)
    Tagged
    0 Thread(s)
    Do you mean with this example? What exactly do you want your inventory to do?

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Decoamorim's Avatar
    Join Date
    May 2013
    Location
    Florianópolis, Brazil
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No... that was for the other reply... kkk

    I am downloading it now! Thanks DaveC for your help

  5. #15
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleiOS Export Module
    Decoamorim's Avatar
    Join Date
    May 2013
    Location
    Florianópolis, Brazil
    Posts
    238
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No... that was for the other reply... kkk

    Thanks DaveC for your help! That was exactly what i needed

  6. #16
    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)
    For anyone else, the way I would do this is have a List/Internal List/1D Array that stores your items, then set their icons to the position

    X = InventoryX + (Index % NumberOfTilesWide) * (TileWidth + Padding)
    Y = InventoryY + Int(Index / NumberOfTilesWide) * (TileHeight + Padding)

    Index is the list item number or X value in the array where a list like

    Arrow
    Arrow
    Bullet
    Gun
    Gun
    Sword

    would have an index of 0 and 1 for the arrow items and an index of 5 for the sword. It will place them starting in the top left and filling up across the top row, then overflowing to the next line once Index is greater than NumberOfTilesWide.

    TileWidth is the width of your tile (32 for a 32x32 tile) and padding is the space between tiles, measured so that 4px padding for 32x32 tiles has tile 0 at 0,0 and tile 1 at 36, 0.

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Keeping things organized - few problems occured
    By J3sseM in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 14th June 2013, 11:06 AM
  2. Object Selection (Create and Reference)
    By Danny in forum File Archive
    Replies: 10
    Last Post: 26th August 2012, 05:54 PM
  3. Create Object + Object Selection Revisited
    By Crash86 in forum Multimedia Fusion 2 - Technical Support
    Replies: 6
    Last Post: 22nd February 2011, 04:33 PM
  4. Create Object + Object Selection
    By Crash86 in forum Multimedia Fusion 2 - Technical Support
    Replies: 12
    Last Post: 13th October 2009, 04:56 PM
  5. [Request] Organized Alt Values
    By netninja in forum Multimedia Fusion 2 - Technical Support
    Replies: 10
    Last Post: 27th May 2007, 02:43 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
  •