Forum

> > CS2D > General > Button Ghosting
ForenübersichtCS2D-ÜbersichtGeneral-ÜbersichtEinloggen, um zu antworten

Englisch Button Ghosting

10 Antworten
Zum Anfang Vorherige 1 Nächste Zum Anfang

alt Button Ghosting

Quattro
GAME BANNED Off Offline

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

alt Re: Button Ghosting

mafia_man
User Off Offline

Zitieren
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.

alt Re: Button Ghosting

Quattro
GAME BANNED Off Offline

Zitieren
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

alt Re: Button Ghosting

Avo
User Off Offline

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

alt Re: Button Ghosting

Quattro
GAME BANNED Off Offline

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

alt Re: Button Ghosting

Seekay
Reviewer Off Offline

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

alt Re: Button Ghosting

Flacko
User Off Offline

Zitieren
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.

alt Re: Button Ghosting

FlooD
GAME BANNED Off Offline

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

alt Re: Button Ghosting

Quattro
GAME BANNED Off Offline

Zitieren
@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?
Zum Anfang Vorherige 1 Nächste Zum Anfang
Einloggen, um zu antwortenGeneral-ÜbersichtCS2D-ÜbersichtForenübersicht