cool
thanks both of you - didn't know the mousez command was mousewheel.
[edit]
I still can't get my code to work right! [img]
[/img] I'm using:
oldmouse=mousez()
if mousez()>oldmouse
If tog<max#
tog=tog+1
Else
tog=min#
Endif
endif
if mousez()<oldmouse
If tog>min#
tog=tog-1
Else
tog=max#
Endif
endif
It seemed to be easier to understand than the other method, and I'm lazy so I thought I'd give it a go...
max# is 2 and min# is 1 at the moment (will increase later). I can't see what I'm doing wrong - can someone please help?
Thanks
[/edit]
[edit2]
I tried the other method:
zMouseMove# = mousemovez()
tog = tog + zMouseMove# / 500
if tog<min# then tog=max#
if tog>max# then tog=min#
It still doesn't work!
[/edit2]
[edit3]
I changed the code and it's because I was dividing by 500 that it wasn't working, at 100 it works better (but still not perfect - I can fix that though)
Here's my code at the moment:
zMouseMove# = mousemovez()
tog = tog + zMouseMove# / 100
if tog<min# then tog=max#
if tog>max# then tog=min#
Thanks for your help. Mentor and Chris K
[/edit3]
Am I the only one here who's really confused?