User Tag List

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

Thread: Game Map Chunks

  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
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by colej_uk View Post
    I assume X & Y for the positions, then Z for the 'type' of tile?

    I'm thinking of using a similar method for my next project.
    That's just it though. There is already a value stored at X,Y in the array. That value would be the tile type. So, set value at 1,1 to tile value 3 (or whatever). If tile value = 3, create grass

    Unless I'm just totally misunderstanding the Z index, you would only need that if you want to store multiple values for a particular index. Like if you're creating more than one thing at 0,0. Otherwise you'd have to use separate arrays for different object placements.

  2. #12
    Clicker

    Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export Module
    Konidias's Avatar
    Join Date
    Aug 2009
    Posts
    1,546
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Well if all you want to store is the tile type, then yes it's fine to just use x,y... but I typically use z because it allows me to store more data at that x,y position... such as information for the tile. Say for the rock tile you want to be able to hit it with a hammer, and each time you hit it, a value goes up and the rock is damaged. So if you had that stored at x,y,1 then you could load that value in and display the proper damaged version of the rock and keep track of its damage.

    I was just thinking ahead, but yeah you're right, if all you are storing is different tiles at the x,y position, then you can save yourself some array space and just use x,y.

  3. #13
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleFirefly 3D Module

    Join Date
    Oct 2006
    Posts
    138
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Very helpful example thanks

  4. #14
    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
    Jul 2006
    Location
    USA
    Posts
    2,982
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    You are correct Konidias. When I was working with this sort of thing I was making simplistic maps. If you think you may be adding more advanced features it's probably safer to use the Z index just in case. Then you won't have to redo everything later.

  5. #15
    Clicker Fusion 2.5 (Steam)

    Join Date
    Jul 2014
    Posts
    92
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Konidias I can't seem to access your example can you make another like or send it over to me somehow. This thing sounds like something I need bad for my game

  6. #16
    Clicker Fusion 2.5
    stuartmaughan's Avatar
    Join Date
    Feb 2015
    Posts
    29
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Heya Konidias, would it be possible to re-upload this? I am very interested as to how this would work but cannot seem to access it :c
    Cheers!

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Is this even possible? (splitting a photo into chunks)
    By Pineapple in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 21st August 2013, 07:40 AM
  2. Donkey Kong JR Game & Watch cloned into arcade game some MMF2 technical problems.
    By daryuss in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 9th June 2013, 09:17 PM
  3. Open exported html doc, game doesnt load. When opening raw SWF, game fits screen!
    By Oreo in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 19th November 2012, 03:16 PM
  4. Flash Game Screen Size Game Site Preferences
    By Rolando in forum SWF/Flash Export Module Version 2.0
    Replies: 1
    Last Post: 4th January 2012, 04:04 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
  •