Multiple conditions under one "or"

Get help using Construct 2

Post » Tue Feb 25, 2014 4:10 am

Image
Is there any way to do this ^ (or something similar) without making the double condition separately and copying all the events to it?
B
16
S
2
Posts: 85
Reputation: 1,479

Post » Tue Feb 25, 2014 4:13 am

if you use touch you don't need to use mouse condition.
You can use sub events sticked with the 2 variables instead of "or"
B
12
S
4
G
1
Posts: 241
Reputation: 1,699

Post » Tue Feb 25, 2014 4:29 am

Sorry, I don't follow what you mean by "sticked"
B
16
S
2
Posts: 85
Reputation: 1,479

Post » Tue Feb 25, 2014 4:35 am

These are triggers. They are not standard events, and can't be combined, as they happen outside of the event loop. They have to be dealt with individually. You are just calling one action, so its hardly excessive repetition of code.
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725

Post » Tue Feb 25, 2014 5:13 am

I'm not too sure I'm explaining myself properly. I would like to be able to have the Or block read
Trigger or Condition is True or Trigger and Condition is True
or something to a similar effect.
http://i.imgur.com/2Tb9ZDd.png
There is a decent amount of stuff under each in the best case scenario. However, for practical purposes I could just copy for each so I guess this matter isn't really that pressing.
B
16
S
2
Posts: 85
Reputation: 1,479

Post » Tue Feb 25, 2014 5:23 am

Use a function then. Have each trigger variation call the function that does the common code.
B
71
S
21
G
220
Posts: 3,648
Reputation: 123,725


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 3 guests