Advertisement
Guest User

Untitled

a guest
Jan 15th, 2019
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. if(GameMath.randomNumber(1) > 0.85) {
  2. this.turnToAngle(GameMath.randomAngle(), 0.5);
  3. }
  4.  
  5. if(GameMath.randomNumber(1) > 0.5) {
  6. this.variables.speed = GameMath.randomNumberBetween(0, 7);
  7. }
  8.  
  9. this.setForwardSpeed(this.variables.speed);
  10. this.playAnimation('walk', true, this.variables.speed / 5);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement