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
How to get return value from this function?
I tried this:
But it doesn't work
upd: the console.log(...) works but return doesn't return a value to C2 variable
Develop games in your browser. Powerful, performant & highly capable.
That 0 by where the cursor is in your screenshot has quote marks around it, but not & symbols which would cause it to be read as a string.
Yeah, I know. It doesn't matter. Just mistaken when tried to simplify the code. Previously there was "&loopindex("i")&"