Advertisement
Guest User

Untitled

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