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
29
S
11
G
3
Posts: 212
Reputation: 4,168

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
67
S
28
G
24
Posts: 970
Reputation: 18,675

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: MoscowModder and 11 guests