Problem with mouse....

Blitz3D Forums/Blitz3D Beginners Area/Problem with mouse....

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

If you in a loop call:

a=Mousehit(1)
b=Mousehit(1)
c=Mousehit(1)

then a will be 1 if you hit the mousekey, b and c will be 0, as MouseHit works so that it will be reset when you call it. The simple way to make such code work is to have a variable where you once per loop store MouseHit(1):

mouse1=MouseHit(1)
If mouse1 Then etc...

I have no idea why you can only make the right mouse button work.

For the rest of your problems, work over it in a logical way, step for step, what happens, what array values are cleared, what is the array pointer set to?