mouse wheel prob

Blitz3D Forums/Blitz3D Beginners Area/mouse wheel prob

or alternatively:
mousewheel=MouseZ()

If mousewheel>MlastPos Then tileindex=tileindex+1 : MlastPos = mousewheel
If mousewheel<MlastPos Then tileindex=tileindex-1 : MlastPos = mousewheel