Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Duel! 0.99 open alpha (limited time!)
#15
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. Smile

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.'
Reply


Messages In This Thread
Duel! 0.99 open alpha (limited time!) - by Anonymous - 04-18-2006, 11:43 AM
Duel! 0.99 open alpha (limited time!) - by Z!re - 04-18-2006, 04:19 PM
Duel! 0.99 open alpha (limited time!) - by Z!re - 04-18-2006, 06:05 PM
Duel! 0.99 open alpha (limited time!) - by Z!re - 04-18-2006, 06:10 PM
Duel! 0.99 open alpha (limited time!) - by Z!re - 04-19-2006, 12:52 AM
Duel! 0.99 open alpha (limited time!) - by anarky - 04-20-2006, 08:18 PM
Duel! 0.99 open alpha (limited time!) - by 1000101 - 04-20-2006, 08:37 PM
Duel! 0.99 open alpha (limited time!) - by KiZ - 04-20-2006, 10:10 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)