Dictionary or Array?

Get help using Construct 2

Post » Mon Sep 14, 2015 4:00 am

I'd like to learn when to use a dictionary vs an array

If I have two pieces of data such as a question and an answer where many questions can have the same answer, would it be better to organize the data using an array or a dictionary?

I currently think an array is the better option because for lack of a better reason, I don't quite understand dictionaries. Could someone give some examples of plausible situations for using dictionaries to help me better understand them?
B
10
S
2
Posts: 80
Reputation: 995

Post » Mon Sep 14, 2015 8:01 am

Array =)
B
12
S
1
Posts: 63
Reputation: 633

Post » Mon Sep 14, 2015 8:58 am

Dictionary is easier to learn. But array will set you up forever... Arrays make games possible, arrays are the golden ticket to data. Best spend time learning them.

And here is example
You think you can do these things, but you can't, Nemo!
Just keep reading.
Just keep learning.
B
65
S
16
G
9
Posts: 1,429
Reputation: 12,708


Return to How do I....?

Who is online

Users browsing this forum: amazingdream and 23 guests