Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Vector2 offsetDirection = Vector2.Zero;
- if (Controller.IsButtonDown(Buttons.Left))
- offsetDirection.X -= 1;
- if (Controller.IsButtonDown(Buttons.Right))
- offsetDirection.X += 1;
- if (Controller.IsButtonDown(Buttons.Up))
- offsetDirection.Y -= 1;
- if (Controller.IsButtonDown(Buttons.Down))
- offsetDirection.Y += 1;
- if (offsetDirection == Vector2.Zero)
- return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement