home *** CD-ROM | disk | FTP | other *** search
- symbols
- message startup
- message activate
- message timer
-
- surface convA1
- surface convA2
- surface convA3
- surface convB1
- surface convB2
- surface convB3
- surface convB4
- surface convB5
-
- surface moveleft linkid=5
- surface moveright linkid=5
-
- flex firstspeed
- flex secondspeed
-
- vector vector1
- vector xvector1a
- end
-
- code
- xbacktonormal:
- call xstopanim;
- startup:
- player=getlocalplayerthing();
- setwallcel(moveright,1);
- setwallcel(moveleft,0);
- anim111=slidewall(convA1, vector1, firstspeed);
- anim112=slidewall(convA2, vector1, firstspeed);
- return;
-
- activate:
- if (getsenderid()==5) {
- if (getwallcel(moveright)==0) return;
- setwallcel(moveright, 0);
- setwallcel(moveleft, 1);
- stopanim(anim111);
- stopanim(anim112);
- anim119=slidewall(convA1, xvector1a, secondspeed);
- anim1110=slidewall(convA2, xvector1a, secondspeed);
- settimer(10);
- }
- return;
-
- timer:
- call xbacktonormal;
- return;
-
- xstopanim:
- stopanim(anim119);
- stopanim(anim1110);
- return;
-
- end
-
-