How do I Fix my Character's Movement?

Get help using Construct 2

Post » Mon Dec 21, 2015 6:20 pm

Nahuos wrote:
LittleStain wrote:
Nahuos wrote:BUMP:
So I think that I need to make it so that when A (Left) is pressed, D(Right) cannot be pressed? Anyone knows how to disable a key while another key is going on perhaps?


Something like this should work for that:

On A pressed
D is not down
> set direction to left

on D pressed
A is not down
> set direction to right


Did not work...haha :( I need to find a way for the computer to think of pressing A and D as they're next to each other, but it seems to process whichever is placed first.


You did see the difference between "on pressed" and "is down" in my example?
Should work just fine that way..

But if you keep having issues, please share your capx, for this should be pretty easy to get right..
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 » Mon Dec 21, 2015 9:42 pm

Good news everyone! I finally fixed it! Thanks for the help! :) I ended up doing something entirely different though!
B
6
Posts: 39
Reputation: 304

Post » Tue Dec 22, 2015 2:14 pm

on A and D pressed u have set character direction to Right why is that? oh good that u fixed it... sorry didn't seen 2nd page...

however the previews picture u uploaded the character was playing the right animation for both buttons cause... well u set it that way..
Image
B
64
S
19
G
67
Posts: 1,310
Reputation: 42,005

Previous

Return to How do I....?

Who is online

Users browsing this forum: MAVERICK and 9 guests