Need a kind person for help

Get help using Construct 2

Post » Wed Aug 22, 2012 6:35 am

I still have problems with save and load menu. I looked everywhere, asked everybody. But I could not figured that out. I just don`t get it (arrays and webstorage)

So, I `m just looking for a kind person to send my .capx game file, and if that person would be able to create save and load option in my game, I would be soooo thankful to him or her.

Please, anybody
B
21
S
4
G
1
Posts: 59
Reputation: 5,122

Post » Wed Aug 22, 2012 7:27 am

What kind of game are you making? What things do you want to be saved?

While I wont do it for you I will gladly help talk you through how to do it yourself. If you dont get arrays, forget about them - there are other ways to save what you need (Unless your making an rpg, that could get complicated).
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473

Post » Wed Aug 22, 2012 7:56 am

Its a game with kinda Minecraft gameplay. You can find it in Arcade, it is called "Kopatel 2D"
What I need to make is when player press Q button (for example) it saves all blocks on their position and it saves the amount of players lives. Then person who plays, close browser, shutdown his computer, go to grandma for vacation, comes back, lunches game, press E (for exmaple) and position of the blocks become exactly the same, when he left a game.
AlexeyMak2012-08-22 07:57:40
B
21
S
4
G
1
Posts: 59
Reputation: 5,122

Post » Wed Aug 22, 2012 7:59 am

[QUOTE=GenkiGenga] What kind of game are you making? What things do you want to be saved?

While I wont do it for you I will gladly help talk you through how to do it yourself. If you dont get arrays, forget about them - there are other ways to save what you need (Unless your making an rpg, that could get complicated). [/QUOTE]
I ll be glad if you show me a good way. I asked Ashley, but he is a busy guy, so what I`ve got from him was "Use arrays" =)
AlexeyMak2012-08-22 07:59:56
B
21
S
4
G
1
Posts: 59
Reputation: 5,122

Post » Wed Aug 22, 2012 1:22 pm

Ah ok.. maybe I should have said "Unless your making an rpg OR a minecraft inspired game". Saving player lives is easy but if you want it to save whole level layouts your going to have to use arrays as Ashley suggested.

Here is a really good tutorial on how to use arrays from Ramones. Thats the first step.

http://www.scirra.com/tutorials/307/arrays-for-beginnersGenkiGenga2012-08-22 13:27:43
ImageImage
B
73
S
16
G
6
Posts: 1,038
Reputation: 10,473

Post » Wed Aug 22, 2012 1:27 pm

Saving an array in webstorage is not trivial. You need to make sure you understand them perfectly.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,400

Post » Wed Aug 22, 2012 5:11 pm

[QUOTE=sqiddster] Saving an array in webstorage is not trivial. You need to make sure you understand them perfectly.[/QUOTE]

Agreed, nothing is trivial on the World, people still having problems to understand how to start a new project ^^

@AlexeyMak , you will need much more than a simple save and load system to save, it's about how you organized your code.

For example, if your character have changed 100 blocks on the scenario, each block will need to have their own ID, pos.x and pos.y stored in an array (array is a type of thing where you store information, separating each one by commas).

So, think in a scenario with a grid of 4 slots, like this:
_ _
|_|_|
|x|_|

Where is the X? Is on the thirty slot.

How you'll make Construct 2 know it? If it's already there, Construct 2 already know it, so, start indexing in an array the first one, the second and ahead, like this: (nothing, nothing, X, nothing). Now C2 know a sequence and know where the X is, it's on the thirty slot of your array. Then, when loading, you'll need to make C2 know how to place it on the thirty slot by doing a math with a looping, for example: when looping reach the slot 3, it'll call the array slot 3 and place the X on the right location.

Well, it's easy to write here, but I can't reproduce it in an CAPX at this time, because my arms are short when talking about arrays ^^
ImageImageImageImageImageImage
B
93
S
19
G
12
Posts: 1,192
Reputation: 18,301

Post » Wed Aug 22, 2012 5:49 pm

Thanks guys for help and your time!
I guess? I just won`t make it, cause it is looks hard and the main reason, every time I tried to learn arrays - its just don`t come to my brain. There are some thing people don`t understand.In make case it is arrays )

So, whoever be able to make it, I can pay for this (paypal)
Just send me a private message.AlexeyMak2012-08-22 17:58:48
B
21
S
4
G
1
Posts: 59
Reputation: 5,122

Post » Wed Aug 22, 2012 7:57 pm

Alexy
You are NOT alone! I have had a very difficult time with arrays. I absolutely do not mean anyone any disrespect, but the tutorial mentioned above may be awesome, but it is not for beginners. Perhaps beginners to arrays, but definitely not for beginners at construct, arrays, and coding in general. I was not able to follow that tutorial. I only got so far before I had to give up. The tutorial expects you to know very much about construct. I would love for someone to finally come up with a step by step tutorial on arrays. I may purchase a license and set it aside to grant the first person that comes up with a comprehend able step by step tutorial on arrays. I believe there are many people that would be harnessing the powers of arrays if they were not arrayophobes like me.
B
20
S
2
Posts: 257
Reputation: 2,431

Post » Wed Aug 22, 2012 8:19 pm

I feel a little bit better, knowing that I am not the only one
AlexeyMak2012-08-22 20:19:19
B
21
S
4
G
1
Posts: 59
Reputation: 5,122

Next

Return to How do I....?

Who is online

Users browsing this forum: Draconinho, luisgmolina, Magistross, nedzad, nimos100, R0J0hound, Rezzon71 and 28 guests