-SOLVED-if/else conditionals etc

Get help using Construct 2

Post » Sat Dec 14, 2013 11:15 pm

In my game, I have ui objects that if touched should perform a certain action. If they are not touched, they should be performing a different action.

I dont have any problem checking and adding actions if they are touched. My problem is:

How can I check if something is NOT being touched. And if NOT perform some actions.

I come from more of a programming background and this is pretty much my main problem.

I want to be able to do things like

if(isTouchingObject)
{
do this!
}
else
{
Do something else!
}

I love the general ease and workflow of construct so far. But these types of things are where I am struggling.

Or the ability to have NOT conditionals. Like saying

if(!isTouchingObject)
{
do this!
}

I dont know if any sort of ability to do this exists or not. But help would be appreciated.Tylermon2013-12-15 00:14:50
B
28
S
8
G
1
Posts: 226
Reputation: 2,865

Post » Sat Dec 14, 2013 11:42 pm

Right-click your event:Add:Add else

Right-click your condition:Invert
ImageImageImage
B
71
S
22
G
247
Posts: 3,753
Reputation: 137,552

Post » Sun Dec 15, 2013 12:13 am

[QUOTE=blackhornet] Right-click your event:Add:Add else

Right-click your condition:Invert[/QUOTE]

Thank you! The ever elusive invert!

B
28
S
8
G
1
Posts: 226
Reputation: 2,865


Return to How do I....?

Who is online

Users browsing this forum: gameba, roracle and 6 guests