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
Our educational partners
Free education resources to use in the classroom
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
I am having some troubles using the dictionary. I know how to search a dictionary in Python, but C2 seems to be quite different. I have gotten it to kind of work, but it keeps the previous value. how do I clear/reset the dictionary value?
Perhaps by using the dictionary action "delete key" or "clear" (remove all keys)?
Develop games in your browser. Powerful, performant & highly capable.
That just removes all the keys, I tried doing that.
Does anyone know how to reset/set the current dictionary value?
You "Add key", "Set key", or "Delete key" as actions. It's not clear what more you want. You get the data with a Get expression.
Event 51 is wrong: you don't need a For each and Has. 'Has' checks the whole dictionary, and is true of false.
blackhornet, that is what I thought! But it didn't seem like it was working. I will test it again later on the weekend.
What I want to do is find the right key and then load the game with that value. It works, but it returns the wrong value (the dictionary value I last used).