using text list blocks or xml

0 favourites
  • 2 posts
From the Asset Store
With this template you will learn how to use the GooglePlay Games native plugin
  • I want to create an adlibs style game.

    but instead of typing in random words. I want them to select from my word lists.

    and if word cat selected set word list cat items (milk;ball;catnip) would be selectable

    if dog selected set word list dog items (bone;chewy;ball) and so on.

    I have a basic list of items.

    every tick compare TextList

    if cat = selected set catlist visible.

    If ball = selected set catlist2 visible.

    If play = selected set text (The cat loves to play with a ball of yarn.) play (read text Ball of yarn)

    does this look to be on the right track or is there a better way?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I would use JSON, like:

    {"cat": ["milk","ball","catnip"], "dog": ["bone","chewy","ball"]}

    unless you need more cross referencing, then maybe a 2-d array would be better. You can still use JSON, just the underlying data structure changes.

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