Boolean switching without 2 events

Get help using Construct 2

Post » Sat Jan 04, 2014 8:40 pm

at the moment when I set a boolean to true or false I have to write if touched and boolean false set true and visa versa... which is 2 events...

How can I do if touched set booleanVar !booleanVar to shorten things?

Thanks.
B
3
Posts: 36
Reputation: 299


Post » Sat Jan 04, 2014 8:53 pm

to invert the boolean use toggle boolean rather than set boolean.
August 2015 - I misplaced a lot of links - I will try to find backups and repost. If You find a post that interests please reply to post with @rampackwobble and I will get a nudge!

If you find my posts useful please consider donating something to a local charity or to the http://www.mndassociation.org/
B
64
S
33
G
47
Posts: 1,194
Reputation: 30,812

Post » Sat Jan 04, 2014 8:59 pm

Oh.... yeah.... That.... ROFL. Still getting used to this way of comparisons >.<! .

They really need to get an Accept answer button here.

Thankyou :Dtsugaruddr2014-01-04 21:05:13
B
3
Posts: 36
Reputation: 299


Return to How do I....?

Who is online

Users browsing this forum: georeb, InfiniteRockets, ksiads, Zav and 5 guests