How do I make a change placement button work?

Get help using Construct 2

Post » Sat Aug 15, 2015 8:08 pm

I'm currently developing a Twin Stick shooter and I'm adding a button to switch the placement of the attack and movement stick but I'm stumped on how to change the placing. I've got a button on the menu that when the player presses the switch button, the Global Variable:StickPlacement is set to 1 and when it's set to 1, the sticks trade places but how to I make it go back? I tried to make it so that when the button is tapped again AND the Global Variable is:1 the StickPlacement changes to 0 and the Sticks are switched back. This "Switch Button" will also be available on the Pause menu of the game.

I still don't know what I should do. This is basically the same concept I'm stuck with, with music and how to make music turn off button and on button.

Here's the problem: https://www.dropbox.com/s/s72ofewfx0ufg ... .capx?dl=0
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300

Post » Sat Aug 15, 2015 9:09 pm

In this case it's only a matter of using an else event:

https://dl.dropboxusercontent.com/u/485 ... ition.capx
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Tue Aug 18, 2015 7:35 am

Thanks @LittleStain, you're awesome.
Risk Rocket now available on Google Play
Image
B
36
S
15
G
6
Posts: 337
Reputation: 6,300


Return to How do I....?

Who is online

Users browsing this forum: rayolf and 18 guests