This won't work cos the val drops just once from 50 and keeps ocillating there... have a flag that u can use to specify if the add operation or the subtract operation has to be done....a global variable should do the trick.... Anand Ravi Email: [EMAIL PROTECTED] At 04:46 PM 1/4/01 -0800, Jonathan wrote: >I am trying to make the timex go from 1 to 50 when it hits 50 it will go >from 50 to 1 and repeat this sequence. Its getting stuck always can somebody >help? > > >property timex,timez > >on exitFrame > timex=timez > starttimex >end > >on starttimex > timez=timex+1 > > if timex=50 then > timez=timex-1 > end if > > set timex to timez > put timex into member "time" > > sprite(1).blend=100 > sprite(2).blend=timex+10 > sprite(3).blend=timex+8 > sprite(4).blend=timex+6 > sprite(5).blend=timex+4 > sprite(6).blend=timex+2 > sprite(7).blend=timex >end > > > >[To remove yourself from this list, or to change to digest mode, go to >http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, >email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) >Lingo-L is for learning and helping with programming Lingo. Thanks!] > > > >[To remove yourself from this list, or to change to digest mode, go to >http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, >email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) >Lingo-L is for learning and helping with programming Lingo. Thanks!] [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!] Visit http://www.NetVarsity.com for online learning [To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/LUJ/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]) Lingo-L is for learning and helping with programming Lingo. Thanks!]