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
hi guys! my problem is array set
"set value at (0,1,2,3,...) to tokenat..."
I want a single function for all numbers.
Develop games in your browser. Powerful, performant & highly capable.
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, ","))
I love You