Global booleans still not supported?

Discussion and feedback on Construct 2

Post » Fri Sep 07, 2012 3:03 am

http://www.scirra.com/forum/boolean-global-and-local-variables_topic46457.html

Said you would get to it a few months ago, any progress?
B
49
S
18
G
7
Posts: 429
Reputation: 8,888

Post » Fri Sep 07, 2012 3:08 am

Ashley and Tom have a pretty long to-do list, and I see features and requests being added to it daily. It'll probably take awhile. For now, working with 1 and 0 and checking values should still suffice right?
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Fri Sep 07, 2012 12:58 pm

No news yet, we are aware of this, but we still have 50+ items on our todo list, we're working as fast as we can.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Sat Sep 08, 2012 12:06 am

Alright... thanks
B
49
S
18
G
7
Posts: 429
Reputation: 8,888

Post » Sat Sep 08, 2012 1:43 am

1 and 0 have the added bonus of toggling in an expression: set X to 1 - X.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Sat Sep 08, 2012 6:16 am

@sqiddster If X = 0, 1 - X is still 1 :P
I think you meant,
X = X - 1
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Sat Sep 08, 2012 1:02 pm

@rory, I said 'toggle' - as in turn 0 to 1 or 1 to 0.
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Sat Sep 08, 2012 5:24 pm

[QUOTE=sqiddster] 1 and 0 have the added bonus of toggling in an expression: set X to 1 - X.[/QUOTE]

@sqiddster I know, I'm saying that Setting X to 1 - X when X is 0 would be that you get 1 - 0, which is still 1.. am I missing something
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Post » Sat Sep 08, 2012 5:40 pm

Toggling means when we have 0, we want 1, and when we have 1, we want 0, right?

1 - 0 = 1

1 - 1 = 0

You see what I'm saying?
B
90
S
30
G
24
Posts: 3,189
Reputation: 32,390

Post » Sat Sep 08, 2012 8:12 pm

Ah, I do get it now. Sorry for the confusion man!
I really sucked at the logic behind that
B
36
S
10
G
6
Posts: 948
Reputation: 11,101

Next

Return to Construct 2 General

Who is online

Users browsing this forum: 8tomo8 and 9 guests