Help me :(

Get help using Construct 2

Post » Thu Jul 28, 2016 11:40 pm

Hello.
I know I'm using a translator for the English language.
My problem is:

Whether X events when a key is pressed.
When the same button is pressed again to get another event.

A button as you can see in the picture without the pressure of opacity is 50 going on 80.

Waiting for your answer. Sorry for bad english.

Image
B
10
S
7
G
2
Posts: 16
Reputation: 2,132

Post » Fri Jul 29, 2016 12:05 am

It happens because you tell it, when A is down set opacity to 50 - then immediately to 80 - so the opacity will always be 80.

If you want to change between 50 and 80 with each press you have to do it a little differently.

[Keyboard A is down]
[Opacity is 50]
--- Set opacity to 80
[ELSE]
--- Set opacity to 50

That will make it change between 50 and 80 with each time you press A.

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Fri Jul 29, 2016 12:09 am

Also you may want to use "On A pressed" instead "A is down", otherwise it will switch between the two every tick as long as you have A held down.
Mistakes were made.
B
52
S
26
G
108
Posts: 1,606
Reputation: 61,133

Post » Fri Jul 29, 2016 12:14 am

oosyrag wrote:Also you may want to use "On A pressed" instead "A is down", otherwise it will switch between the two every tick as long as you have A held down.


Quoted for truth. I failed to mention that!

~Sol
Tired of crappy file hosts that are crappy? Get DROPBOX - https://db.tt/uwjysXJF
Moderator
B
83
S
34
G
40
Posts: 3,032
Reputation: 30,474

Post » Fri Jul 29, 2016 12:36 am

I actually wanted to ask me: If two of an event is always running at the bottom. I would get the upper run the following after start. Running at the bottom of the upper run. I hope I can tell
B
10
S
7
G
2
Posts: 16
Reputation: 2,132


Return to How do I....?

Who is online

Users browsing this forum: mcscooter and 35 guests