home *** CD-ROM | disk | FTP | other *** search
- function move()
- {
- _X = _X + ix;
- _Y = _Y + iy;
- if(_X < 0 or 550 < _X or _Y < 0 or 400 < _Y)
- {
- nextFrame();
- }
- else
- {
- cont = 0;
- while(cont < _root.id_piedras.length)
- {
- if(this.hitTest("_root." + _root.id_piedras[cont]))
- {
- colision = 1;
- break;
- }
- cont++;
- }
- if(colision == 1)
- {
- with(_root.sonido1)
- {
- gotoAndPlay(2);
- }
- nextFrame();
- }
- }
- }
- stop();
-