Advertisement

Key input for 2 players in VB

Started by May 30, 2001 01:54 AM
1 comment, last by VBHardCoder 23 years, 8 months ago
Guys I''ve got a very basic remake of Street Fighter 2 here...and no AI, player vs player and while I got the basic movements when I tried including dragonballs down-forward-punch gets cancelled by the other player''s press of any key because VB looks for the exact chain of thouse 3 keys...has anyone done anything simular to this? Sharing any experiance would be appriciated because I''m running out of ideas here ;-( Thanks in advance...
Are you using the KeyDown / KeyUp events or are you using DirectInput?


RM.



-=Kicking Butt and Writing Code=-
Advertisement
Hey,

Try ths code:

Public Declare Function GetAsyncKeyState Lib "user32" (ByVal vKey As Long) As Integer

If GetAsyncKeyState(vbKeyA) < -100 Then
''// action
End If

Or if it''s still not good enaugh, then go to: http://www.TrueVision3DSDK.com and take the 3d engine, but use only the key input, I find it very easy to use and it''s very fast

Cya,
Creepy RgDream

This topic is closed to new replies.

Advertisement