04-20-2006, 08:37 PM
Quote:She's discovered a massive bug that escaped notice: If you've got very low latency, you can shoot much faster by hammering the spacebar.
I pity her spacebar...
Next version will rectify this somehow.
Simply put in a variable which holds the next timestamp at which a shot can be fired.
Code:
If ( GetTickCount >= Next_Shot ) Then
If ( Player.Shoot ) Then
Next_Shot = GetTickCount + 250
doAddBullet
End If
End If
Pretty simple, actually. This way it doesn't matter if they hold the space of pound on it. It will only allow a shot every 250ms.
Life is like a box of chocolates', hrm, WTF, no it isn't, more like, 'life is like a steaming pile of horse crap.'