IF YOU HELP ME (JS) I DRAW GRAPHIC FOR YOUR GAME

Get help using Construct 2

Post » Mon Jun 13, 2016 5:16 pm

I have a question. when my game thrown on the server , Export data for the help plugin callJS ( example " var name = Eric" ) and save my data in JS . But how i can load my " var name = Eric" when i 'm next time we run game . I need to load this data becouse my game is uploaded and stay in server game.zip so how i can do this? Pleace somone help me . Sorry for my lang

I need some code in JS or some example file . :ugeek:

The great graphic designer so if somone help me and draw the layout for game or something :)
B
10
S
4
G
1
Posts: 26
Reputation: 892

Post » Thu Jun 16, 2016 4:08 pm

You have to unzip it on the server into the base html directory. The webserver has to be able to read the index.html file or it will never work.

Your files should look like this:

/var/www/html/ (or whatever your base html directory is)
.../index.html
.../c2runtime.js
.../data.json
etc...
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Sun Aug 07, 2016 6:18 am

Can someone share for me file? i want save slot, next restar computer and load my slot frome json or some file. Please
B
10
S
4
G
1
Posts: 26
Reputation: 892

Post » Mon Aug 08, 2016 1:34 pm

As far as loading and using JSON, you can use @rexrainbow 's Hash plugin or the C2 Dictionary object.

For loading/saving JSON files on the users computer, you have to use the File Chooser.

How do I use the file chooser?
https://www.ravenheart.ca/home
I don't check the forums much anymore, but I will receive an email for PMs.

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,418
Reputation: 4,830

Post » Thu Sep 01, 2016 7:24 am

thanks for help :)
B
10
S
4
G
1
Posts: 26
Reputation: 892


Return to How do I....?

Who is online

Users browsing this forum: AllanR, asdtricky, Yahoo [Bot] and 10 guests