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
- vector vector2
- vector xvector2a
- end
-
- code
- xbacktonormal:
- call xstopanim;
- startup:
- player=getlocalplayerthing();
- setwallcel(moveleft, 1);
- setwallcel(moveright, 0);
- anim1=slidewall(convA1, vector1, firstspeed);
- anim2=slidewall(convA2, vector1, firstspeed);
- anim3=slidewall(convA3, vector1, firstspeed);
- anim4=slidewall(convB1, vector2, firstspeed);
- anim5=slidewall(convB2, vector2, firstspeed);
- anim6=slidewall(convB3, vector2, firstspeed);
- anim7=slidewall(convB4, vector2, firstspeed);
- anim8=slidewall(convB5, vector2, firstspeed);
- return;
-
- activate:
- if (getsenderid()==5) {
- if (getwallcel(moveleft)==0) return;
- setwallcel(moveright, 1);
- setwallcel(moveleft, 0);
- stopanim(anim1);
- stopanim(anim2);
- stopanim(anim3);
- stopanim(anim4);
- stopanim(anim5);
- stopanim(anim6);
- stopanim(anim7);
- stopanim(anim8);
- anim9=slidewall(convA1, xvector1a, secondspeed);
- anim10=slidewall(convA2, xvector1a, secondspeed);
- anim11=slidewall(convA3, xvector1a, secondspeed);
- anim12=slidewall(convB1, xvector2a, secondspeed);
- anim13=slidewall(convB2, xvector2a, secondspeed);
- anim14=slidewall(convB3, xvector2a, secondspeed);
- anim15=slidewall(convB4, xvector2a, secondspeed);
- anim16=slidewall(convB5, xvector2a, secondspeed);
- settimer(20);
- }
- return;
-
- timer:
- call xbacktonormal;
- return;
-
- xstopanim:
- stopanim(anim10);
- stopanim(anim11);
- stopanim(anim12);
- stopanim(anim13);
- stopanim(anim14);
- stopanim(anim15);
- stopanim(anim16);
- stopanim(anim17);
- return;
-
- end
-
-