Guest
Public paste!

Untitled

By: a guest | Sep 9th, 2010 | Syntax: C++ | Size: 0.89 KB | Hits: 75 | Expires: Never
Copy text to clipboard
  1. onClipEvent(load){
  2.                              xspeed=1;
  3.                              yspeed=1;
  4.                              Rotation=5;
  5. }
  6. onClipEvent(enterFrame){
  7.                              if(this._x<=35){
  8.                                                           xspeed=7;
  9.                              }
  10.                              if(this._x>=513){
  11.                                                           xspeed=-7;
  12.                              }
  13.                              if(this._y<=37){
  14.                                                           yspeed=7
  15.                              }
  16.                              if(this._y>=363){
  17.                                                           yspeed=-7;
  18.                              }
  19.                              this._x+=xspeed;
  20.                              this._y+=yspeed;
  21.                              _rotation+=Rotation;
  22. }