(Solved) How do I simplfy more than one arrow key is down

Get help using Construct 2

Post » Thu Jul 16, 2015 11:37 am

I try to check if more than one arrow key is down. I put a capx in here
https://goo.gl/wODmFB

This control take 11 event. Is there a way to simplfy it?
Last edited by mrcgkh on Thu Jul 16, 2015 9:05 pm, edited 1 time in total.
B
21
S
8
G
6
Posts: 177
Reputation: 8,134

Post » Thu Jul 16, 2015 4:11 pm

Can you please republish this in a non-beta version Construct?
https://www.ravenheart.ca/home
Company name changed to avoid Facebook-type shenanigans

"Someone once told me I bite off more than I can chew...

I told them I would rather choke on greatness than nibble on mediocrity."
B
22
S
6
G
1
Posts: 1,415
Reputation: 4,824

Post » Thu Jul 16, 2015 5:26 pm

Maybe like this:
Image

But need to be careful when focussing/unfocussing the window, while a key is down

... more robust:
Image
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
B
22
S
9
G
1
Posts: 787
Reputation: 3,786

Post » Thu Jul 16, 2015 8:17 pm

It's a collision test. If right arrow is down check the right side (if there is a wall at right). If there is no wall player moves to right. But if player pressed more than one arrow keys collision check is failed. Here's my solution. Thanks for your ideas.
Image
B
21
S
8
G
6
Posts: 177
Reputation: 8,134


Return to How do I....?

Who is online

Users browsing this forum: dop2000, namaewayukidesu, Yahoo [Bot] and 5 guests