How to load a Table from a Dictionary

0 favourites
  • 6 posts
From the Asset Store
An educational game for Times Table. An easy to use template for developers to build larger games
  • Hello,

    How to load a Table from a Dictionary Please ?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • There's no such thing as a Table in Construct 3, but I'm going to say you would probably make a list using "For Each Key".

    You might want to look at Array instead of Dictionary.

  • Construct 3 to a "array" object.

    The translator who does his job badly, I suppose.

    "Table = Array" okay?

    You can put "tables" in a dictionary, I know how to do it.

    But to read the "table" how to do it?

    I want to put what the key (the value of the key) contains in the dictionary in an array object.

  • Something like that:

    + System: On start of layout

    -> Dictionary: Add key "a" with value "a"

    ----+ Dictionary: For each key

    -----> Array: Set value at loopindex to Dictionary.CurrentValue

    Edit:

    Ok Dictionary doesn't have an index.

    So you need to be more specific on what you want to do.

  • | Global number mycount‎ = 0

    + System: On start of layout

    -> Dictionary: Add key "a" with value "a"

    -> Dictionary: Add key "b" with value "b"

    -> Dictionary: Add key "c" with value "c"

    ----+ Dictionary: For each key

    -----> Array: Set value at mycount to Dictionary.CurrentValue

    -----> System: Add 1 to mycount

  • Hello,

    Thank you for your help, but that's not what I want to do at all!

    Here's what I wanted to do, I figured it out all by myself.

    drive.google.com/open

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