Help with a counter
I am a student learning the ways of max, and my Professor is not very knowledgeable about the subject.
how do I make a counter that SMOOTHLY counts up and down from -360 to 360 based on two different bangs that will switch on off opposite from each other.
so for instance:
I want to flip a switch and have the counter object count to.. lets say 186. Then I want to flip an alternate switch and have the counter count down from 186 to lets say… -10. Essentiall I want the thing to count up or down smoothly without missing a number.
Please help me!!! I am pulling my hair in frustration over this simple/basic task!
thank you guys
On 4 Oct 2006, at 20:46, Robert Plant wrote:
> I want to flip a switch and have the counter object count to.. lets
> say 186. Then I want to flip an alternate switch and have the
> counter count down from 186 to lets say… -10. Essentiall I want
> the thing to count up or down smoothly without missing a number.
There are a few issues here – one is how fast the counter goes – how
is this controlled? Another is, what happens when it reaches the
target? These will affect how you do it, but the following may help:
There is a counter object – this can be made to count up and down –
look at its help file. Counter allows you to set maximum and minimum
values, so you should be able to make that work. Alternatively, you
could use an == object to detect when it reaches the target and stop
the counting, but this will be a bit more comlicated. I suggest try
counter – if you can’t make it work we will just have to look at