Ok, this is the rough and very crude movement code I'm using at the moment:
Now, it works perfectly...except for one thing.
When moving backwards and turning, it works fine, but when moving forwards and turning, you can only fire when turning right. Trying it while turning left results in the computer beeping to tell me too many keys are held down (though, like the other cases, there are only three keys down).
Can anyone make sense of this? It's so simple, but it's quite a showstopper...
If KeyDown(200) Then MoveEntity(s\Entity,0,0,s\Speed) ElseIf KeyDown(208) Then MoveEntity(s\Entity,0,0,-(s\Speed*0.5)) EndIf If KeyDown(203) Then TurnEntity(s\Entity,0,s\TurnRate,0) ElseIf KeyDown(205) Then TurnEntity(s\Entity,0,-s\TurnRate,0) End If If KeyDown(57) Then For i = 0 To 2 If s\Weapons[i] <> Null Then FireWeapon(s\Weapons[i]) EndIf Next EndIf
Now, it works perfectly...except for one thing.
When moving backwards and turning, it works fine, but when moving forwards and turning, you can only fire when turning right. Trying it while turning left results in the computer beeping to tell me too many keys are held down (though, like the other cases, there are only three keys down).
Can anyone make sense of this? It's so simple, but it's quite a showstopper...