hold 2 switches to proceed

Get help using Construct 2

Post » Fri Jun 07, 2013 5:54 pm

I have the following setup:

2 rocks. 2 switches.

The player has to move the rocks into the switches in order to proceed.

When ANY of the rocks collides with a switch, the switch will become "PRESSED" state and a sound will be played.

But there is wind to move the rocks around. If a rock left a switch, the switch will become "NOT PRESSED" state.

If 2 switches are "PRESSED", a sound will be played and these 2 switches will stuck in "PRESSED" state permanently, even if the rocks are being moved away from the switches.

Any idea on doing this in C2 event? I prefer having only 2 object types: the rock and the switch.
I got a game that you multiply, breath fire with two heads and brawl foes to oblivion with your clones: http://www.newgrounds.com/portal/view/660664 (use Chrome on Windows for best performance)

My sites:
http://twinblazar.deviantart.com
http://twinblazar.newgrounds.com
https://twitter.com/twinblazar
http://www.pixiv.net/member.php?id=15072448
B
30
S
11
G
11
Posts: 411
Reputation: 8,469

Post » Fri Jun 07, 2013 6:21 pm

give a bollien variable to each switch then make the switch tru when he places the rock on the switch
B
40
S
11
G
7
Posts: 514
Reputation: 9,646


Return to How do I....?

Who is online

Users browsing this forum: divsyntax, pmerineau and 10 guests