Sliding Attack Assistance

For questions about using Classic.

Post » Mon Jun 20, 2011 2:59 pm

I'm working on my first game as a gift to my girlfriend. I've been hammering out the mechanics for a week now and have almost everything done. In my testing, however, I have noticed a strange bug that prevents me from attacking while performing a wall slide while holding the down movement button. I've reviewed my events and can't seem to find the issue. I was hoping one of you helpful veterans could take a look and see if I am missing something.

[url:3odv2ey5]http://dl.dropbox.com/u/32712975/kvla.cap[/url:3odv2ey5]

Movement is WASD, jump is J, attack is K. To wall slide jump against a wall and hold against it. You can jump kick off the wall as well as double jump. Also, you can skip the first layout by pressing Enter.

Thanks!
B
2
G
1
Posts: 12
Reputation: 474

Post » Mon Jun 20, 2011 3:10 pm

The problem has nothing to do with your events; it's the control setup :P

Keyboards can only register so many keys at a time, and the cap changes depending on the keys used. For me, using the arrow keys and S to jump / D to shoot fixes it.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Jun 20, 2011 3:23 pm

[quote="Tokinsom":q7hn4lxl]The problem has nothing to do with your events; it's the control setup :P

Keyboards can only register so many keys at a time, and the cap changes depending on the keys used. For me, using the arrow keys and S to jump / D to shoot fixes it.[/quote:q7hn4lxl]

I considered that, but if that was the case why would sliding while holding up at the same time and firing work? I don't mind switching around the controls to get it working, I'm just curious.
B
2
G
1
Posts: 12
Reputation: 474

Post » Mon Jun 20, 2011 3:39 pm

[quote="Tokinsom":1ei8ytxt] the cap changes depending on the keys used[/quote:1ei8ytxt]

Seems it will register 3 keys when holding up, but not when holding down. That's all I can think of atleast ^^;
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Mon Jun 20, 2011 3:55 pm

[quote="Tokinsom":2kxnohgu][quote="Tokinsom":2kxnohgu] the cap changes depending on the keys used[/quote:2kxnohgu]

Seems it will register 3 keys when holding up, but not when holding down. That's all I can think of atleast ^^;[/quote:2kxnohgu]

That's so odd. Thanks for looking at it and the help.

Further testing shows that while I'm sliding on a wall to the right, it doesn't work. However, if I'm sliding on a wall to the left, it works! Wow. I don't get it.
B
2
G
1
Posts: 12
Reputation: 474

Post » Mon Jun 20, 2011 6:30 pm

[quote="Tokinsom":1pryyx3f]Keyboards can only register so many keys at a time, and the cap changes depending on the keys used. For me, using the arrow keys and S to jump / D to shoot fixes it.[/quote:1pryyx3f]

Needs to be mentioned that it's also different for many keyboards, since they are not all wired the same.

I tried it and it seemed to work fine on both my laptop and stationary computer (although I find the use of WASD for a platform game, not using the mouse, awkward).

The, probably, safest way to be sure your keys dont cancel each other out is to use arrow keys + Z/X or arrow keys + S/D, or something to that effect. I usually consider the arrow keys in combination with a, s, d and/or z, x, c, as safe.
B
73
S
20
G
10
Posts: 524
Reputation: 9,896

Post » Mon Jun 20, 2011 10:03 pm

Thanks to everyone for the help.

Like what was said, switching back to a setup using arrow keys for movement fixed everything. Hopefully when I switch to working in controller input it won't cause issues there.
B
2
G
1
Posts: 12
Reputation: 474


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 0 guests