Endless Runner help

Get help using Construct 2

Post » Fri Jan 10, 2014 1:56 am


Bump: Anybody knows how to save the coins I collect in game for when I play again I still have them? Please?
B
12
S
3
G
1
Posts: 79
Reputation: 1,055

Post » Fri Jan 10, 2014 2:00 am

You can use Webstorage
B
42
S
17
G
17
Posts: 2,247
Reputation: 17,461

Post » Fri Jan 10, 2014 10:04 am

I tried with WebStorage but it isnt clear at all. Compared to the rest of Construct 2 is a pain to use. Any other way?
B
12
S
3
G
1
Posts: 79
Reputation: 1,055

Post » Fri Jan 10, 2014 1:01 pm

I tried with webstorage again but it isnt clear.

Could someone be so kind post the stuff I need to save the coins I pick during play so I have them for the next time I play the app? Please?
B
12
S
3
G
1
Posts: 79
Reputation: 1,055

Post » Fri Jan 10, 2014 6:10 pm

@Frostolo I think you can add a web storage.
Check to see if local key exist. The local key would be the Var you create for the coins) Name: coins Text Display: COINS

In Layout Add webstorage.

EVENT = webstorage

ACTION= System - set value (Choose your var "coins) - int(WebStorage.LocalValue("coins"))

I think that's correct. If not I'm sorry it's been a while....

Good Luck
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
15
G
3
Posts: 356
Reputation: 5,269

Post » Fri Jan 10, 2014 7:52 pm

@ALLMarkMade I did this:

Event: WebStorage - Local Key Exists "Coins"

Action: System - set value - int(WebStorage.LocalValue("coins"))

But now it doesnt show in game how many coins I collected. I think it doesnt work.

This is my weak point. I need help please.
B
12
S
3
G
1
Posts: 79
Reputation: 1,055

Post » Fri Jan 10, 2014 8:36 pm

I managed to do it thanks to @ALLMarkMade. But I'm uncertain if it works because when I restart the browser it loses all the coins from the previous run. Is this normal? Its supposed to happen like this on a browser and work fine on iOS?
B
12
S
3
G
1
Posts: 79
Reputation: 1,055

Post » Fri Jan 10, 2014 11:02 pm

@Frostolo - give a minute I'm going to send you a video I found on how to do something similar that I think will get you there...

one moment
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
15
G
3
Posts: 356
Reputation: 5,269

Post » Fri Jan 10, 2014 11:14 pm

@Frostolo - I PM'd you that should do the trick....
Check out my latest game RAPID-TAPIT. Get your Fingercise on with this one. A steady Tap is all you need to score points. Lift a finger and see what you can do...

Image

ALLMarkMade Designs
B
32
S
15
G
3
Posts: 356
Reputation: 5,269

Post » Mon Jan 13, 2014 11:44 pm

Sorry for the late late response. I been very busy in other aspects to my life plus I needed a break and some social life. I managed to add a lot of stuff to the game thanks to your video. HighScore, save coins, etc... thanks a lot. That why I like this forums. Thanks ALLMarkMade! :)
B
12
S
3
G
1
Posts: 79
Reputation: 1,055

PreviousNext

Return to How do I....?

Who is online

Users browsing this forum: brunopalermo, Nicolas951 and 11 guests