I want to make a game where u have to press two keys at once

Get help using Construct 2

Post » Mon Mar 21, 2016 6:12 pm

I'm new to Construct, so I pretty much don't know anything so far. I have designed all the sprites, I just need to get it all working.

Basically, the idea of the game is that you have to press one of the arrow keys, and one of the WASD keys at once. The keys are going to be displayed on the screen, and will indicate which ones need to be pressed by turning green. There is going to be a timer, which will quickly count down, and each time the player presses the two keys successfully, there are going to be extra time added, and they gain 1 point on the score. The score will be displayed in the middle, just like Flappy Bird. If the player presses any wrong key, or if they run out of time, they lose. There is also a character who will stand still and change animation every time the two keys are pressed.

Hopefully, I haven't made this too complicated for you guys. I just want some advice on how to make those things work.

Thank you
B
3
Posts: 3
Reputation: 181

Post » Tue Mar 22, 2016 2:43 am

that would be in your event

2 conditions
key pressed
arrow pressed
= event
B
29
S
13
G
10
Posts: 355
Reputation: 8,327

Post » Tue Mar 22, 2016 4:23 am

Carbincopy, you're forgetting the fact that there can be only one trigger in any event, regardless of what type of event it is. The solution would be:
On W pressed
Is Up down

This way you can check for two keys, but one of them has to be held down, unless there's another solution.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620

Post » Wed Mar 23, 2016 5:52 pm

Could you just do:

1st Key is down & 2nd key is down?

And add the Trigger Only Once if you want it to only run once when both keys are down?
ImageImageImage
B
43
S
26
G
11
Posts: 516
Reputation: 10,473


Return to How do I....?

Who is online

Users browsing this forum: dop2000 and 41 guests