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
Hey folks. Quick question: can anyone come up with a way to do the following:
This would be trivial for any other programming tool but I can't seem to find anything in C2 which can do it easily.
Develop games in your browser. Powerful, performant & highly capable.
Nevermind, got it!
Psuedocode:
local number token = 0
Repeat (tokencount(textbox.text, newline) times
-> Push back Array (tokenat(textbox.text, token, newline)
-> Add 1 to token
EDIT: instead of the local variable you can actually just use loopindex