How do I save global variables

Get help using Construct 2

Post » Fri Oct 02, 2015 8:19 am

pls tell me how do i save global variables & instance variables
and what are the steps for saving variables
Image
B
64
S
39
G
46
Posts: 656
Reputation: 32,728

Post » Fri Oct 02, 2015 8:38 am

Use LocalStorage or Save function built into C2. The Save function will save the state all of global variables.

The official tutorial on LocalStorage (accessed in C2 via help under LocalStorage) is straight forward.
B
70
S
24
G
19
Posts: 1,757
Reputation: 17,614

Post » Sat Oct 03, 2015 9:22 am

dear friends

here is my capx
https://www.dropbox.com/s/yhwozpqlcbwle ... .capx?dl=0
pl tell me what m doing wrong in this file

pls correct this and tell me my mistake

here is screenshot
https://www.dropbox.com/s/czt94yi8lz0s4 ... e.jpg?dl=0
Image
Image
B
64
S
39
G
46
Posts: 656
Reputation: 32,728

Post » Sat Oct 03, 2015 9:23 am

https://www.dropbox.com/s/yhwozpqlcbwle ... .capx?dl=0

this is my file link
what m doing wrong here
Image
B
64
S
39
G
46
Posts: 656
Reputation: 32,728

Post » Sat Oct 03, 2015 1:07 pm

Does this help?

Save Variables Improved
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Sat Oct 03, 2015 1:12 pm

Why create a new topic with exactly the same question?
Or would you like the same answer twice?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Oct 05, 2015 4:58 am

LittleStain wrote:Does this help?

Save Variables Improved


Yes this helps me
i got the point for saving variables
thanks dear

but here my point system is different
remaining bullets will added to points
Image
B
64
S
39
G
46
Posts: 656
Reputation: 32,728

Post » Mon Oct 05, 2015 5:02 am

actually No!
when i post first time then i did not get any response then i thought that this post may gone down of all others post
may be no one can will find this old post so i post it again
Image
B
64
S
39
G
46
Posts: 656
Reputation: 32,728

Post » Mon Oct 05, 2015 5:19 pm

A single topic is far better than two.
You are allowed to bump a topic after 24 hours if it gets drowned.

But posting multiple topics just add more noise to the forums.
New to Construct ? Where to start

Image Image

Image Image

Please attach a capx to any help request or bug report !
Moderator
B
292
S
115
G
96
Posts: 7,295
Reputation: 70,785

Post » Tue Oct 06, 2015 4:52 am

Now i have got the point
How to save global variables .. Thanks to @LittleStain
pls tell me if same steps are applied to save instance variable
Image
B
64
S
39
G
46
Posts: 656
Reputation: 32,728


Return to How do I....?

Who is online

Users browsing this forum: Microbex and 19 guests