English Button Ghosting

10 replies
Goto Page
To the start Previous 1 Next To the start
09.04.14 01:13:33 pm
Up
Quattro
GAME BANNED
Offline Off
Hello, I noticed that when you press and hold "D" key while already holding "A" (trying to move right while running left) CS2D only taps the "D" key and immediately resumes holding down "A" key (it starts running left again even though you are trying to run other direction. It doesn't start running right until you release "A" key :X). That's the only combination which doesn't function properly, all other combinations work.

Is it fixable?
09.04.14 01:18:20 pm
Up
mafia_man
User
Offline Off
It may be caused by order of checking holded keys, in blitzmax it possibly looks like this:
Code:
1
2
3
4
5
6
if KeyDown(KEY_LEFT) then
     ' move left
elseif KeyDown(KEY_RIGHT) then
     ' move right
     ' if KEY_LEFT is already hold, this is not going to be executed
endif


I see no point of fixing this tho. You're not supposed to hold both keys (LEFT and RIGHT), so what's the problem.
09.04.14 02:06:53 pm
Up
RisingXD
User
Offline Off
@user mafia_man: Quite so, you are right. Better get this thread trashed. Useless.
Rising XD: Say Hello to my little friend! (M249) & [bot]Adon-is-gay AWP Rising & [bot]Adon-is-gay: Nope.
14.04.14 04:06:14 pm
Up
Quattro
GAME BANNED
Offline Off
This topic is not meant for useless posters, it's meant for DC to let him know that there is a minor bug in controls
14.04.14 04:33:46 pm
Up
Avo
User
Offline Off
@user Quattro: It's not a bug. You may be surprised but one does not simply move left and right in one moment.

If you don't like as it is now, use "Relative to the direction" movement in settings. It's not an important part of the gameplay, do not complain.
Trust me, I'm an engineer | user DC approved file cs2d Super extra mod for CS2D (64), yeah!
27.04.14 07:41:26 pm
Up
Quattro
GAME BANNED
Offline Off
It seems DC is not interested, I only got useless replies from tards. oh well
27.04.14 08:24:35 pm
Up
Seekay
Reviewer
Offline Off
@user Quattro:
Back the fuck up, son. user DC isn't the only one who can answer your questions. The posts of the other users (except user RisingXD) are in no way useless. People are trying to help and you're insulting them. GG.
Wash your hands! :­)
27.04.14 10:16:38 pm
Up
Flacko
User
Offline Off
If the code looks like that then It's just as simple as
Code:
1
2
3
4
5
if KeyDown(keyLeft) and !KeyDown(keyRight) then
     moveleft()
elseif KeyDown(keyRight) and !KeyDown(keyLeft) then
     moveright()
endif

When both keys are held, the player won't move.
28.04.14 12:29:00 am
Up
FlooD
GAME BANNED
Offline Off
fixable? of course it is.
will it be fixed? eventually, probably.
when will it be fixed? heh heh..
:(){ :|:& };: http://github.com/floood
09.05.14 11:57:40 pm
Up
Quattro
GAME BANNED
Offline Off
@Seekay. I'm not insulting anyone, just pointing out useless posts like "whuts tha prublem, is ok now do not complain >.<"

@Flacko
You're my hero. Could this be used as server lua?
10.05.14 12:00:48 am
Up
Starkkz
Moderator
Offline Off
@user Quattro: as far as I know you have to modify the source code with user Flacko's script to get that working, you can't do it with Lua scripts.
lol
To the start Previous 1 Next To the start