key pressed after button clicked construct 2

Discussion and feedback on Construct 2

Post » Sat Nov 05, 2016 3:02 pm

Hi,

When I use a button to create an object, if I want to use a key just after that it didn't work. I have to click a second time "outside" the button for the key to have an effect.

2 examples, the first one with a button and a second one with a click on a text.

https://drive.google.com/open?id=0B-CQs ... ndwMWd1cE0

https://drive.google.com/open?id=0B-CQs ... TB2anFJcWM

The desired actions are : click on the button the square is created and click on escape the square is destroyed. It work with the second capx but not with the first.

Is there a way to do it ?

Thank for your help
B
14
S
4
Posts: 22
Reputation: 951

Post » Sat Nov 05, 2016 3:18 pm

Check the provided files again. Both capx contain the same events and both contain text and no buttons.
(And both work)

Here is an example of how to do it with a button:
https://www.dropbox.com/s/b1dybi9y969me ... .capx?dl=1
"We can't solve problems by using the same kind of thinking we used when we created them."
- Albert Einstein
B
27
S
11
G
8
Posts: 528
Reputation: 7,091

Post » Sat Nov 05, 2016 3:21 pm

Image
B
67
S
24
G
7
Posts: 1,518
Reputation: 11,072

Post » Sat Nov 05, 2016 3:28 pm

@randomly you were right the 2 files I provided where the same (with a text).
@karbaack Set unfocused work well !

Thank to you two !
B
14
S
4
Posts: 22
Reputation: 951


Return to Construct 2 General

Who is online

Users browsing this forum: Ashley, Yura G and 2 guests