Are variables used a lot?

Discussion and feedback on Construct 2

Post » Thu Mar 09, 2017 5:09 am

Hi there,

I'm new here and am not a game dev or graphic artist and was wondering if variable handling is a often a part of the process of developing a game. I'm trying to learn if people pass variables from a calling language from a DB to a game and back again. Is this common?

Thanks,
Sam
B
10
S
2
G
1
Posts: 7
Reputation: 1,080

Post » Thu Mar 09, 2017 5:57 am

Variables are used a lot for just about anything, it just depends if you need them. I don't quite understand the second part of your question. Do you have a game that needs a database?
B
94
S
33
G
118
Posts: 5,396
Reputation: 75,853

Post » Thu Mar 09, 2017 6:07 am

There are string and number values in the DB that need to be passed to the game, and shown to the player. After the game is over, I'd like some variables passed back to the DB as well. Trying to figure out if this kind of back and forth through C2 is common, or am I off base.
Thanks for the reply.
B
10
S
2
G
1
Posts: 7
Reputation: 1,080

Post » Thu Mar 09, 2017 9:18 am

Im sure someone uses databases with c2, although I never have myself. You could look at the plugin list to see if there's something to help with that or maybe search the tutorials to see if someone explains how to do it.
B
94
S
33
G
118
Posts: 5,396
Reputation: 75,853

Post » Thu Mar 09, 2017 9:36 am

I have built a game passing and fetching data to a mySQL db.
See tutorial section.
B
16
S
4
Posts: 85
Reputation: 1,175

Post » Fri Mar 10, 2017 6:50 am

Thanks, are you talking about the manual or one of the 'guided' game tutorials?
B
10
S
2
G
1
Posts: 7
Reputation: 1,080


Return to Construct 2 General

Who is online

Users browsing this forum: Jedjoud and 10 guests