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 donea global variable should do the trick
Anand Ravi
Email: [EMAIL PROTECTED]
At 04:46 PM 1/4/01 -0800, Jon
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?
[untested code]
property timex
property pIncrement -- determines the direction of the counting
on new me
timex
No, it won't work, because you move it up to 50, then drop it back by one,
but you don't consistently go back by one.
I'm not sure exactly what you're doing with this (having gradually shaded
sprites?) but consider starting with something like this:
-- Init timex (these are globals or propert
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