Is there an "or" command?

Get help using Construct 2

Post » Thu Feb 02, 2017 2:08 pm

Hey guys, is there a way to set an event as an "or" statement? I have 2 road sprites being generated from a spawner. When the player collides with the road, the player accelerates. When the player is not colliding with the road, they slow down to a crawl. Is there an option to set an event to say "when player collides with road1 or road2 > accelerate?

Thanks in advance!
B
6
S
1
Posts: 71
Reputation: 548

Post » Thu Feb 02, 2017 2:12 pm

Right click the event => Make OR block

Image
B
34
S
12
G
3
Posts: 233
Reputation: 4,490

Post » Thu Feb 02, 2017 4:21 pm

Or in this particular case, you could create a "Roads" family have your event go like "when player collides with Roads".
B
75
S
31
G
27
Posts: 1,000
Reputation: 20,735

Post » Tue Feb 07, 2017 1:20 pm

Thanks to the both of you!
B
6
S
1
Posts: 71
Reputation: 548


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 9 guests