User Tag List

Results 1 to 9 of 9

Thread: List View/Array Question

  1. #1
    No Products Registered

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

    List View/Array Question

    I'm trying to make a stepfile program for my rhythm game. Originally, I tried using ListView, as it was easy to see what was happening to it visually, but I don't think it will work, as I can't seem to read from the specific column and row I have selected. I've also tried loading an array from my List View, and everything should work perfectly, I'm reading from X1, my array is Base 1, and my Y is variable, it increases every 1/4 step. I don't really know what I'm doing wrong...any ideas, please?

  2. #2
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List View/Array Question

    You haven't said what your actual problem is. Are you getting nothing from the array object?

  3. #3
    No Products Registered

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

    Re: List View/Array Question

    Quote Originally Posted by DavidN
    You haven't said what your actual problem is. Are you getting nothing from the array object?
    Evidently.

    Nothing I've tried has worked. I've tried spawning arrows when a 3 in the array is selected, and various other conditions, none of which seem to work.

    So then, I said ok, I've got to see what's going on here. I created another score object, and made it always display what my array has selected.

    Despite starting at X1 and moving down Y every 1/4 step, my array is reading nothing. My stepfile is loaded at the start of my program by List View and is loaded by the array *after*. My stepfile looks like this -

    0,0,0,1
    0,0,0,1
    0,0,1,0
    1,0,0,0

    Ones are supposed to represent arrows. This is a harder implementation than the one I'm working with now, which, for the same arrow config is this -

    4
    4
    3
    1

    So there is only 1 column and many Ys...a very simple array.

  4. #4
    Clicker Multimedia Fusion 2 DeveloperHTML5 Export ModuleSWF Export ModuleInstall Creator Pro
    drnebula's Avatar
    Join Date
    Jul 2006
    Location
    Pennsylvania, USA
    Posts
    908
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List View/Array Question

    I would suggest setting an always condition and setting counters or strings to the values or strings in your array. Then as you add them, you will be able to see if they are really being stored. By doing a step by step process like this you can locate exactly where the error is occuring.
    Steve

  5. #5
    No Products Registered

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

    Re: List View/Array Question

    Quote Originally Posted by drnebula
    I would suggest setting an always condition and setting counters or strings to the values or strings in your array. Then as you add them, you will be able to see if they are really being stored. By doing a step by step process like this you can locate exactly where the error is occuring.
    Steve
    I will try this. I don't understand how this would differ from writing whatever my array has selected to a score, but at this point I'm willing to try anything. Once I'm done with this feature, I think things will move swiftly, but at the moment things are frustrating.

  6. #6
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List View/Array Question

    Actually, I read your second post again - are you writing a String to the array that reads "0,0,0,1"? I had trouble with getting Strings out of arrays as well - instead, it may help to use a two-dimensional array with four spaces in the Y dimension and just store an int in each array space.

    Although if you only need to store 0 or 1, perhaps the ByteArray would be a better choice of object as far as space taken is concerned.

  7. #7
    No Products Registered

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

    Re: List View/Array Question

    Quote Originally Posted by DavidN
    Actually, I read your second post again - are you writing a String to the array that reads "0,0,0,1"? I had trouble with getting Strings out of arrays as well - instead, it may help to use a two-dimensional array with four spaces in the Y dimension and just store an int in each array space.

    Although if you only need to store 0 or 1, perhaps the ByteArray would be a better choice of object as far as space taken is concerned.
    This is something I had given up on.

    The system I'm trying to implement now is the second example I gave, where:

    4 = -> (right arrow)
    3 = \/
    2 = /\
    1 = <-

    Like DDR. So:

    <-
    <-
    ......./\
    ....\/

    Would read like:

    1
    1
    3
    2

    In my simple array.

    I don't know that this is the most efficient way of doing it, but it does seem the easiest. What I want it to do is move down the Y axis of my array every 1/4 step (which my game should be doing now, but it doesn't seem like it is). I am doing the same things to both my ListView and my Array at the same time, and I can see the game moving down a column on my List View in time with the beat, selecting the appropriate numbers to the arrows I want to see.

    So, to be more specific, I'm looking for either a way to read what my List View has selected or a way for an array to do the same, even though I feel I am doing something intrinsically wrong with the array as it never has anything selected (again, I am monitoring it with a second score, with Set score to 'get information from object' current array position (I forget the exact action).

  8. #8
    Forum Moderator Fusion 2.5 DeveloperHTML5 Export ModuleiOS Export ModuleSWF Export Module
    DavidN's Avatar
    Join Date
    Jun 2006
    Location
    Boston, MA, USA
    Posts
    4,044
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: List View/Array Question

    Yes, it sounds like either there's nothing in the list or it's not reading correctly. (It looks like you could use a standard List for this rather than ListView and separate out the events that actually view the arrows, but I'm not sure what difference it would make.)

    One consideration - what are you going to do about double arrows?

    If you post the source in the File Archive I can take a look at it.

  9. #9
    No Products Registered

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

    Re: List View/Array Question

    Thank you for the offer, I will bring it in to the library (where I'm posting from now) if I'm unable to resolve things today.

    For double arrows, if I find the need for them, I will use 5+.

Similar Threads

  1. Any way for me to view an Array file saved out from MMF2 to check the data?
    By BrashMonkey in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 14th January 2015, 12:00 AM
  2. Quick question- 1 dimension array or list?
    By Sumo in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 4th December 2012, 02:47 PM
  3. Question with 'List View' Object - Dev only extension
    By Chaos in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 10th August 2012, 10:02 AM
  4. List View question
    By Timon in forum Multimedia Fusion 2 - Technical Support
    Replies: 1
    Last Post: 8th May 2012, 05:15 PM
  5. List View and Icon View
    By LIJI in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 4th July 2007, 03:45 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
  •