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
It is undefined, but the trigger "on item get" does have the value, is this by design or I'm doing something wrong? The "exists" trigger does have the value too.
Develop games in your browser. Powerful, performant & highly capable.
Why do you need this value in "On item set"? This event is triggered immediately after "Set item" action. So you should still have this value stored in a variable (or array/dictionary/etc.), you don't need to read it back from local storage.
I wanted to make the UI reactive to updates to localStorage.
But I mean, if the other methods have the value, I think onItemSet should too.