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.

Yes you have understand the problem quite correctly!
I use mousehit instead of mousedown because i have a variable assigned to mousehit that create object,so if i use mousedown instead the variable create many object!
I also understand that calling mousehit in a rows don't work, and it's my problem.
But i don't understand your solution....
Example:
[code]
a=mousehit ;this create an object
b=mousehit ;this exit program
c=mousehit ;this start the animation

;main
if a=1
;create object
a=0
endif

if b=1
;exit program
b=0
endif

if c=1
;start animation
c=0
endif

;end main
[\code]

For the reason that you described me b and c are always 0 if called in a row after a=mousehit....
I don't know what do you intend to have a variable where i store mousehit....