Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 12th Apr 2003 12:08
i'm making a 2player game with sprites, the controls use the cursor keys(leftkey(),rightkey()) and the "a" and "d" keys i use the inkey$() command to check to see if a or d is being pressed but i found a problem, if i press the "a" key and then the rightkey(or leftkey) at the same time the "a"key no longer has any affect until i release the left or right key and press the "a"key again. can i fix it so that both of my sprites can be controlled at the same time??
thanks
'You were born crying while people around you smiled'
Redostrike
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: Belgium
Posted: 12th Apr 2003 12:26
Don't know if you can change this whit te keyboard. 2 Players --> 1 keyboard. You can use the mouse for a second player.

Only heroes live forever
Flashing Blade
22
Years of Service
User Offline
Joined: 19th Oct 2002
Location: United Kingdom
Posted: 12th Apr 2003 12:42
first find the codes for the keys you wanna use like this

sync on
do
set cursor 0,0
print scancode()
sync
loop


then use these codes with KEYSTATE() to see if they pressed:


if keystate(?)
code...
endif
ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 12th Apr 2003 19:24
is there a list of scancode numbers somewhere???

'You were born crying while people around you smiled'
Redostrike
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: Belgium
Posted: 12th Apr 2003 20:34
Go to this page scroll down a bit to see a drawing. There it is. Hope you can read it.

http://www.barcodeman.com/altek/mule/scandoc.php

Only heroes live forever
CloseToPerfect
21
Years of Service
User Offline
Joined: 20th Dec 2002
Location: United States
Posted: 13th Apr 2003 08:22


ReD_eYe
21
Years of Service
User Offline
Joined: 9th Mar 2003
Location: United Kingdom
Posted: 13th Apr 2003 15:49
thanks guys!

'You were born crying while people around you smiled'

Login to post a reply

Server time is: 2024-11-24 10:38:17
Your offset time is: 2024-11-24 10:38:17