a minute... Why?
Code:
# Wall scrolling
#
# By Edward
flags=0x240
symbols
message startup
message pulse
surface wall0
surface wall1
surface wall2
surface wall3
surface wall4
surface wall5
surface wall6
surface wall7
surface wall8
surface wall9
surface wall10
surface wall11
surface wall12
surface wall13
surface wall14
surface wall15
surface wall16
surface wall17
surface wall18
surface wall19
surface wall20
surface wall21
surface wall22
surface wall23
surface wall24
surface wall25
flex y=0 local
flex x=.1 local
flex z=10 local
int animid0 local
int animid1 local
int animid2 local
int animid3 local
int animid4 local
int animid5 local
int animid6 local
int animid7 local
int animid8 local
int animid9 local
int animid10 local
int animid11 local
int animid12 local
int animid13 local
int animid14 local
int animid15 local
int animid16 local
int animid17 local
int animid18 local
int animid19 local
int animid20 local
int i local
end
#
code
startup:
for(i=0; i<=25; i=i+1)
{
animid0=SlideSurface(wall0, VectorSet(0,-z,y), 1);
}
SetPulse(0.1);
return;
pulse:
y=y+x;
if(y>1) x=-.1;
if(y<-1) x=.1;
for(i=0; i<=25; i=i+1)
{
StopAnim(animid0);
animid0=SlideSurface(wall0, VectorSet(0,-z,y), 1);
}
return;
end