Forum

> > CS2D > General > Button Ghosting
Forums overviewCS2D overviewGeneral overviewLog in to reply

English Button Ghosting

10 replies
To the start Previous 1 Next To the start

old Button Ghosting

Quattro
GAME BANNED Off Offline

Quote
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?

old Re: Button Ghosting

mafia_man
User Off Offline

Quote
It may be caused by order of checking holded keys, in blitzmax it possibly looks like this:
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.

old Re: Button Ghosting

Quattro
GAME BANNED Off Offline

Quote
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

old Re: Button Ghosting

Avo
User Off Offline

Quote
@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.

old Re: Button Ghosting

Quattro
GAME BANNED Off Offline

Quote
It seems DC is not interested, I only got useless replies from tards. oh well

old Re: Button Ghosting

Seekay
Reviewer Off Offline

Quote
@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.

old Re: Button Ghosting

Flacko
User Off Offline

Quote
If the code looks like that then It's just as simple as
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.

old Re: Button Ghosting

FlooD
GAME BANNED Off Offline

Quote
fixable? of course it is.
will it be fixed? eventually, probably.
when will it be fixed? heh heh..

old Re: Button Ghosting

Quattro
GAME BANNED Off Offline

Quote
@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?
To the start Previous 1 Next To the start
Log in to replyGeneral overviewCS2D overviewForums overview