Hundreds of features to explore
Games made in Construct
Your questions answered
Trusted by schools and universities worldwide
Free education resources to use in the classroom
Students do not need accounts with us
What we believe
We are in this together
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 do I put words in arrays?
in my txt file, I put 1,Weapon and that didn't work.
It doesn't show the words
Some beginners information on Arrays.
Develop games in your browser. Powerful, performant & highly capable.
some video's on my youtube channel use arrays :
In both you can see that data doesn't come from a text file, but from the built in array editor (which in essence is also a project file) and is loaded at runtime. It's pretty easy to edit the array in construct and read it through the ajax plugin. It doesn't matter if it's strings or numbers.
Hope this helps