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.

DarkBASIC Professional Discussion / Need help with multiplayer player controlling

Author
Message
3dZmaster
23
Years of Service
User Offline
Joined: 30th Jun 2003
Location: Finland
Posted: 1st Jul 2003 02:37
I made a split screen game. Now I would need some help:
The first player moves with arrowkeys. There's no problem cause there are simple commands for them. But the second player. What is the best method to get it moving with keys w,s,a,d? Please answer
Current project: Dodge Viper Car Game (Not named yet) Other car models are going to be included soon
Trowbee
23
Years of Service
User Offline
Joined: 12th Apr 2003
Location: United Kingdom
Posted: 1st Jul 2003 02:55
if keystate(17)=1
`code for when w is pressed
endif
if keystate(30)=1
`code for when a is pressed
endif
if keystate(31)=1
`code for when s is pressed
endif
if keystate(32)=1
`code for when d is pressed
endif

Login to post a reply

Server time is: 2026-07-17 13:57:52
Your offset time is: 2026-07-17 13:57:52