I'm attempting to create a project which uses a simple color picker. I've opted to use the HTML Element with the content '<input type="color">' which gives me a lovely default color picker. However, I now need to read the color value of the picker so that I can use it.
After looking online, I've seen several suggestions but none have worked. The most promising one involved creating a global string called MyColor and using this method:
Set HTML Element content to: <input type="color" id="colorPicker">
On Space: runtime.globalVars.MyColor= document.getElementById("colorPicker").value;
However, this doesn't appear to influence the variable at all.
I'm aware there are workarounds such as creating my own color picker, but I really want to learn how to use HTML and javascript in Construct 3 so I'm determined to get to the bottom of this and hopefully gain a better understanding of these features.