Other Variable type?

For questions about using Classic.

Post » Sat Jan 17, 2009 11:58 am

I know that it might not be a huge change or optimization for games but I think for good practice, I think other variable types should be included in private variables.. like 'boolean', etc.. even 'image'
I don't feel too good with having an integer variable for a boolean, maybe it's just me who got used to having true/fasle
B
16
S
10
G
5
Posts: 255
Reputation: 3,934

Post » Sat Jan 17, 2009 12:59 pm

[quote="hero_bash":xxhh9jz0]etc.. even 'image'[/quote:xxhh9jz0]

Image is basically two-dimensional array of RGB values, and I think that there is already a array data type?
B
3
S
2
G
5
Posts: 263
Reputation: 2,201

Post » Sat Jan 17, 2009 1:03 pm

A Boolean variable type is certainly easy to do, but what would Image be used for?
B
3
S
2
G
5
Posts: 1,777
Reputation: 5,529

Post » Sat Jan 17, 2009 3:53 pm

what is boolean?

does it have anything to do with cutting holes in stuff, like in 3d modeling?
B
52
S
7
G
6
Posts: 1,945
Reputation: 7,610

Post » Sat Jan 17, 2009 4:21 pm

In a language like C++, the boolean variable type holds true and false. Use it a fair bit to check for win/lose situations, or whether or not a loop is running. For that kind of thing it'd be quite useful.

As for Boolean modifiers in 3D modelling, http://wiki.blender.org/index.php/Manual/Booleans might explain it a bit more.
B
2
S
2
G
3
Posts: 158
Reputation: 1,566


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 3 guests