Page 1 of 1

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

PostPosted: Thu Jul 16, 2015 11:37 am
by mrcgkh
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?

Re: How do I simplfy more than one arrow key is down

PostPosted: Thu Jul 16, 2015 4:11 pm
by gumshoe2029
Can you please republish this in a non-beta version Construct?

Re: How do I simplfy more than one arrow key is down

PostPosted: Thu Jul 16, 2015 5:26 pm
by mindfaQ
Maybe like this:
Image

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

... more robust:
Image

Re: How do I simplfy more than one arrow key is down

PostPosted: Thu Jul 16, 2015 8:17 pm
by mrcgkh
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