Prevent a function.

Get help using Construct 2

Post » Mon Feb 04, 2013 9:15 pm

I wanted to make a certain script is not executed if not respecting a rule, I will give an example:

While (Object.X) is overlapping with (Object.Y) then
Stop Function (DistanceCheck)
While not (Object.X) is overlapping with (Object.Y) then
Exec Function (DistanceCheck)

this is the logic. How can I do this in construct 2
B
3
S
1
Posts: 24
Reputation: 1,232

Post » Mon Feb 04, 2013 9:38 pm

Get rid of the first action in your example, and then it will only execute when the two objects are NOT overlapping

If you haven't actually set it up yet.

By right clicking an event condition and choosing "invert" it will make it "NOT" occur under those conditions

eg: While not (Object.X) is overlapping with (Object.Y
B
50
S
21
G
8
Posts: 844
Reputation: 10,299

Post » Tue Feb 05, 2013 1:07 am

Problem Resolved :D
B
3
S
1
Posts: 24
Reputation: 1,232


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 25 guests