On list item selection change second list

1 favourites
  • 10 posts
From the Asset Store
Selection frame like in RTS games, works both on mobile and desktop devices.
  • Hi,

    So here's a layout of what i'm trying to do to make it a bit easier to understand:

    LIst 1: List 2: List 3:

    Box 1

    Box 2

    Box 3

    Box 1 contents: apples, oranges, pears

    Apple types: ripe, unripe

    So basically I have 3 lists. When a player chooses 'box 1' option from the drop-down selection, I would like List Box 2 to show the contents of that box, in list form: so apples;oranges;pears. And if 'apples' is then selected from list 2, I would like list 3 to show the apple types: ripe;unripe. Then the player can choose which he/she would like.

    Is it possible to make an entire list content depend on another list's selection?

    Many thanks for your help

  • There are many ways to do it - with arrays, dictionary, CSV/XML files etc.

    Here is an example where list data is stored in string variables:

    https://www.dropbox.com/s/0mp4ow4v1uipy ... .capx?dl=0

  • There are many ways to do it - with arrays, dictionary, CSV/XML files etc.

    Here is an example where list data is stored in string variables:

    https://www.dropbox.com/s/0mp4ow4v1uipy ... .capx?dl=0

    Hi,

    Thanks for your reply. I'm gonna try my best to study your events coding. It looks really technical but I'll do my best. <img src="{SMILIES_PATH}/icon_e_biggrin.gif" alt=":D" title="Very Happy" />

    I'm wondering what's the csv option like? My actual project will need to contain lists with thousands of items. I've never been good at creating small projects lol.

    Is this possible with Construct? I have a little bit of the data arranged in an excel spreadsheet.

    Thanks.

  • You can definitely do this with CSV plugin:

    There are demo projects to help you get started.

  • You can definitely do this with CSV plugin:

    There are demo projects to help you get started.

    Thank you

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • You can definitely do this with CSV plugin:

    There are demo projects to help you get started.

    Hiya,

    Could you email me: happyocean at mailhaven dot com

    I can't send messages on this site.

  • There are many ways to do it - with arrays, dictionary, CSV/XML files etc.

    Here is an example where list data is stored in string variables:

    Hi dop2000,

    I was wondering is this demo you created still available for download?

  • Obi554

    It took me a while to find it.. I really hope the links in old posts will be fixed soon.

    dropbox.com/s/0mp4ow4v1uipyhl/ThreeLists.capx

  • Hi,

    Thanks so much for this!

    Yeh I was confused with the new forum. Took me a while to get used to it.

    Thanks again :)

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)