Types of vars used?

Discussion and feedback on Construct 2

Post » Sat Jul 06, 2013 8:51 am

I tried looking through the manual and searched the forums for an answer and did not find one.

My question: What types of variables are used for the global, local, and instance variables as far as numbers are concerned? Are they regular "int" variables with ranges between -32,768 and 32,767 or "long" variable types ranging between -2,147,483,648 to 2,147,483,647? Or can I make that decision on a case by case basis?

I appreciate in advance any knowledge on this matter.
B
8
Posts: 4
Reputation: 315

Post » Sat Jul 06, 2013 1:00 pm

The only thing I could find that might be helpful:

https://www.scirra.com/tutorials/77/native-expressions-in-construct-2

Specifically:
Conversion Expressions
int(x) - convert x to integer
float(x) - convert x to float
str(x) - convert x to string
B
8
S
1
Posts: 61
Reputation: 1,210

Post » Sat Jul 06, 2013 2:21 pm

They are double precision floats.
Scirra Founder
B
378
S
219
G
84
Posts: 23,854
Reputation: 187,861

Post » Sat Jul 06, 2013 9:33 pm

Thanks for the quick replies.
B
8
Posts: 4
Reputation: 315


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests