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'm trying to read a value from a global variable with this value ("0,0,0,3") using tokenat but always return 0, here is the code.
What i'm doing wrong? (The token count works fine)
Its zero based.
even if it's zero based, tokenat("0,0,0,3",3,",") should return "3" newt
alguillenar which version of C2 do you use?
I use the latest version
Edit: I found the error, the variable was reset few lines before
Develop games in your browser. Powerful, performant & highly capable.
That's why I can't reproduce