How do I have variable from an external file ?

Get help using Construct 2

Post » Mon Dec 21, 2015 7:01 pm

Hello (excuse my english),

How do i have variable from an external file ?

I want to assign a variable construct with an external variable in a file or other means ...

An idea ?

Thank you.
B
12
S
3
Posts: 145
Reputation: 2,015

Post » Mon Dec 21, 2015 7:41 pm

Many ideas, project files, ajax, filechooser, among others..
If you could explain more clearly what you'd want to do, it would be easier to advise you on the right way for you..
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 Dec 21, 2015 7:49 pm

Ok,
take for example the variable 7 on my server in a file.
I want to recover the variable 7 and assign it to a global variable of my game of construct.

Thank you.
B
12
S
3
Posts: 145
Reputation: 2,015

Post » Mon Dec 21, 2015 8:14 pm

Have you looked at the Ajax object?
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 » Tue Dec 22, 2015 9:53 am

Ok i looked Ajax and the documentation but...
But how to do it ?
there is no way to make it simpler to retrieve an external variable ?
B
12
S
3
Posts: 145
Reputation: 2,015

Post » Tue Dec 22, 2015 9:56 am

I think the XML object is more appropriate I'll see.
B
12
S
3
Posts: 145
Reputation: 2,015


Return to How do I....?

Who is online

Users browsing this forum: ColombageEnPLS, R0J0hound, RohitIslam, Sealz and 2 guests