Hundreds of features to explore
Games made in Construct
Your questions answered
Popular & trusted by schools and Universities world-wide
Construct 3 runs in the browser & works offline
Students do not need accounts with us
World class complete documentation
Official and community submitted guides
Learn and share with other game developers
Upload and play games from the Construct community
Game development stories & opinions
Hi Dear Devs,
how to i count distinct value in Construct 3?
[101,101,101,101,102,103] = unique value = 3 (got 3 unique number)
Develop games in your browser. Powerful, performant & highly capable.
The easiest way would be by adding a dictionary and adding 1 to your key "number" so if the number happens multiple times then it adds 1 to the dictionary key multiple times see construct.net/en/make-games/manuals/construct-3/plugin-reference/dictionary
* has to turn the each number into STRING, to make it works.
* the key can only be string.