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
hi guys! my problem is array set
"set value at (0,1,2,3,...) to tokenat..."
I want a single function for all numbers.
My brain hurts when I look at your screenshot
You mean something like this?
AJAX On "playeritem" completed
For "x" from 0 to tokencount(AJAX.lastdata,"<br>")
Stores -> Push (back) tokenat(AJAX.lastdata, loopindex, "<br>")
This will feed all strings from the AJAX.lastdata into your array.
item = instance veriable
item = set animation frame
AJAX.lastdata for ???
how to distribute?
Do the same.
For "x" from 0 to (stores.width-1)
Item -> Inventory = Int(tokenat(stores.at(loopindex), 2, ","))
Item -> Store= Int(tokenat(stores.at(loopindex), 1, ","))
item -> set animation frame to Int(tokenat(stores.at(loopindex), 3, ","))
Develop games in your browser. Powerful, performant & highly capable.
I love You