"Moonwalking"

For questions about using Classic.

Post » Sun May 10, 2009 4:03 am

[url:2p2784z0]http://willhostforfood.com/access.php?fileid=65745[/url:2p2784z0]

I hate to bring this up again but the 4-direction movement behavior still doesn't work properly.
It was suggested before that there was something wrong with my events but the above .cap has no events at all.

The problem is that if you are holding down either the left or the right key and then press up or down at the same time your sprite halts it's horizontal movement and begins moving vertically. This only happens when you are moving horizontally. If you are holding either the up or down key and then press left or right at the same time you continue moving vertically as you should.

The 8-direction movement works just fine.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Sun May 10, 2009 4:05 am

Looks like a bug that should be reported, if it hasn't already been.
Moderator
B
5
S
2
G
6
Posts: 4,348
Reputation: 10,971

Post » Sun May 10, 2009 4:21 am

I reported it on the tracker last year and it was declared fixed, but it still seems to have the same problem. I'll report it again.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Sun May 10, 2009 8:50 pm

Note that it could be a keyboard problem.

Most keyboards are wired in such a way that you can't detect certain key combinations, in particular keys that are nearby. Thats why I used to play with keypad for right hand, as it's wired separately to the rest.
B
3
S
2
G
4
Posts: 1,445
Reputation: 4,665

Post » Mon May 11, 2009 1:38 pm

[quote="Madster":1o81fkd7]Note that it could be a keyboard problem.[/quote:1o81fkd7]

I suppose it's possible...

I tried using the keypad instead of the arrow keys and it still has the same problem, but I'll try a different keyboard to see if that fixes it.

I doubt it, though... since up/down movement doesn't have the problem.
B
4
S
2
G
4
Posts: 401
Reputation: 2,302

Post » Thu May 21, 2009 1:00 am

Not sure if it's worth bumping this for such a simple solution, but...

The problems is just that when you are holding left/right and then press up or down your sprite's angle doesn't change to match the new direction, so just add "if key left arrow is down" and "if key down arrow is down", set sprite's angle to 90 (do the same with the right arrow). And then "if key left arrow is down" and "if key up arrow is down" set sprite's angle to 270 (again, the same for the right arrow).

Quick and embarassingly easy. Sorry for bugging you about it, Ashley. :wink:
B
4
S
2
G
4
Posts: 401
Reputation: 2,302


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests