User Tag List

Results 1 to 4 of 4

Thread: Arrays saving object locations, pls help

  1. #1
    No Products Registered

    Join Date
    Aug 2006
    Location
    UK
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Arrays saving object locations, pls help

    Greetings all,

    I have had to give up using the 'Save Game Object' as it is bugged when it saves the information to disk and Im trying to do the same with an Array.

    I need to save all the 32x32 Objects placed on a 800x600 screen.

    1:I am at present using an Active Object(save) and moving its X co-ord, 32 pixels right, checking if its overlapping an Object and if it is I am saving that object to the Array.
    This works perfectly but the 1 shortfall is that it will only record 1 Object. (if there are 2 at the same co-ords)

    2:I then tried taking each Object and recorded its x and y co-ords to the Array and this also works perfectly as 2 Objects can be at the same co-ords but I cannot have more than 1 of each Object.

    Could someone pls tell me how I could record copies of an Object to the array using method 2:

    I do hope I have expressed my problem clearly.

    Many thx

  2. #2
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Arrays saving object locations, pls help

    You have to loop through all object and save em one at a time...

  3. #3
    No Products Registered

    Join Date
    Aug 2006
    Location
    UK
    Posts
    30
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Arrays saving object locations, pls help

    Ok I can use a loop to save each Object of the same type but how would I write this to the Array so that the Array can tell the Objects of the same type apart?

  4. #4
    No Products Registered

    Join Date
    Jul 2006
    Location
    Umeå, Sweden
    Posts
    1,090
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Arrays saving object locations, pls help

    Use X index for the object types and Y index for the instances

Similar Threads

  1. problem when saving strings from arrays into one text file.
    By integrality in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 23rd July 2013, 11:06 PM
  2. Saving Arrays, crash issue
    By pdsoft in forum Android Export Module Version 2.0
    Replies: 4
    Last Post: 15th July 2013, 09:46 PM
  3. access to GPS or Locations?
    By Gibbon in forum iOS Export Module Version 2.0
    Replies: 1
    Last Post: 9th August 2011, 10:51 AM
  4. Saving Arrays from the Array Object
    By Bipolar_Games in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 28th February 2011, 07:16 PM
  5. saving and loading with arrays
    By orenji7 in forum File Archive
    Replies: 3
    Last Post: 26th February 2008, 04:12 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
  •