I search tutorials and find capx examples but they are advanced or intermediate level
dou you know any simple tutorials / examples to start learn?
Dictionary stores data in pairs - key and value. For example:
"Name": "Small sword"
"Damage": 25
"Weight": 10
It's quite easy to use and everything is covered in the official manual.
https://www.scirra.com/manual/140/dictionary
Here is a lengthy tutorial:
http://javajdk.net/tutorial/construct-2 ... -tutorial/
Develop games in your browser. Powerful, performant & highly capable.
Dictionary stores data in pairs - key and value. For example: "Name": "Small sword" "Damage": 25 "Weight": 10 It's quite easy to use and everything is covered in the official manual. https://www.scirra.com/manual/140/dictionary Here is a lengthy tutorial: http://javajdk.net/tutorial/construct-2 ... -tutorial/
thanks for http://javajdk.net tutorials
dop2000
i added new key on start of layout
key 'Name' value 'Jon'
and
i try display in text, settext: Dictionary.CurrentKey & Dictionary.CurrentValue
text object on prewiev shows '0' ?
CurrentKey and CurrentValue only work inside the "For each key" event
i try set text under 'for each' for dictionary, text dont changed
Are you using "Dictionary For each Key" or "System For each"?
Instead of using for each, you can set your text to Dictionary.Get("Name")