Quote:
Originally Posted by Nurta
the lag is actually programmed in, since at first you'd hit right and it would go right 5 times even if you do it fast. I'll play with the numbers some
|
Theres an easy way to have it only do the button action once.
Declare a boolean and set it to false
then when you have this code
Code:
if (GamePad.GetState(PlayerIndex.One).DPad.**** == buttonState.Pressed)
change it to
Code:
if (!i && GamePad.GetState(PlayerIndex.One).DPad.**** == buttonState.Pressed)
Then in the same block of code add
and lastly make another block of code for
Code:
if (GamePad.GetState(PlayerIndex.One).DPad.**** == buttonState.Released)
and add this in that block of code