How do I press multiple keys down

Just started using Construct 2? Post your questions here

Post » Fri May 15, 2015 5:11 pm

Gah.. this seems such a stupid question, but i gots to bare the shame and ask it.. i get it how you set a key press to do something, but how do you get an action by pressing two keys at the same time?

what im trying to do is that say i press down, my player starts walking in that direction, but say i press shift-down, the player would reverse and not turn downwards.
B
7
S
1
Posts: 93
Reputation: 632

Post » Fri May 15, 2015 7:13 pm

Add a second condition..
right click event - add another condition

on down pressed
on shift pressed
> do stuff
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 » Sat May 16, 2015 12:33 pm

Ah, since its you that answered.. i actually i was referring to the movement thing you helped me out before at the topic "https://www.scirra.com/forum/viewtopic.php?f=147&t=130167&p=914512#p914512" , the thing works beautifully, but i cant seem to get it to move past the four main directions without making it flip out on me. I'd need all the eight directions to work.
B
7
S
1
Posts: 93
Reputation: 632

Post » Mon Aug 28, 2017 2:40 pm

It seems like only 6 keys can be pressed at the same time? (Using Construct 3) any additional key is not detected until one of the first 6 is released. Anybody has any experience on this?
Chris Hinz

Design, visual development and illustration

www.hinz-art.com
B
8
S
1
Posts: 56
Reputation: 581

Post » Mon Aug 28, 2017 2:44 pm

hrisnz wrote:It seems like only 6 keys can be pressed at the same time? (Using Construct 3) any additional key is not detected until one of the first 6 is released. Anybody has any experience on this?


It's quite possible this is a keyboard limitation. For example, my SP4 can't recognize if I'm holding shift and press the left arrow key at the same time.

Keep in mind this is hardware-specific (but can also be limited by software), and expecting users to hit more than two or three keys at the same time is outside of standard keyboard usage.

There's a test app at the top of this article to see what your keyboard supports: http://www.microsoft.com/appliedscience ... ained.aspx
B
89
S
47
G
25
Posts: 535
Reputation: 21,827

Post » Thu Sep 14, 2017 6:32 pm

Thanks @digitalsoapbox!
Chris Hinz

Design, visual development and illustration

www.hinz-art.com
B
8
S
1
Posts: 56
Reputation: 581


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 0 guests