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
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 was wondering if there is any simple way you can store simple text data online. I just want to store something like "level = 5" in a text file somewhere on the internet. Then i want to be able to read that text file later and put the user on level 5.
Thanks for the help!
Develop games in your browser. Powerful, performant & highly capable.
use the webstorage object :)
Hey EncryptedCow! Thanks for the suggestion but the webstorage object doesn't guarantee permanent storage...once the user deletes the cookies, its gone!
The Webstorage object doesn't store data online, but it does store it locally, and it isn't cleared when the user clears their cache. So it is relatively permanent.
Hey Ashley, Thanks for the help!
But I want to create a facebook game that keeps track of what level you are on no matter what computer or device you are using. So local storage isn't really an option for me. Is there no simple way to read something from an online text document?
It is quite simple, if you have some knowledge in either Perl or PHP.
You have to set up a script, that stores the file or an entry in a database. In Construct, you have to call that URL with all the parameters you like to store.
I am familiar with a tiny bit of PHP and MySQL databases. But I do not know how to integrate this with Construct.
Could you, kind sir, possibly make a quick .capx showing the simplest way to do this? :D I would be forever indebted to you.