Advertisement
Guest User

Untitled

a guest
Aug 13th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. if (keyboardState.IsKeyDown(Keys.W))
  2. {
  3. JumpisDown = true;
  4. }
  5. else
  6. {
  7. JumpisDown = false;
  8. }
  9.  
  10. if (JumpisDown == true)
  11. velocityplayer.Y = -1;
  12.  
  13.  
  14. if (JumpisDown == false)
  15. {
  16. velocityplayer.Y = 2;
  17. }
  18.  
  19.  
  20. if (position.Y < 390)
  21. {
  22.  
  23. if (keyboardState.IsKeyDown(Keys.W))
  24. {
  25. JumpisNotDown = true;
  26. }
  27.  
  28.  
  29. }
  30.  
  31. if (JumpisNotDown == true)
  32. {
  33. JumpisNotNotDown = true;
  34.  
  35. }
  36.  
  37. if (JumpisNotNotDown == true)
  38. velocityplayer.Y = 2;
  39.  
  40. if (JumpisNotNotDown == false)
  41. if (keyboardState.IsKeyDown(Keys.W))
  42. {
  43. JumpisDown = true;
  44. }
  45.  
  46.  
  47.  
  48. velocityplayer.X *= demomanSpeed;
  49. position += velocityplayer;
  50. LockDemoMan();
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement