Something wrong with my mouse code

Blitz3D Forums/Blitz3D Beginners Area/Something wrong with my mouse code

bashc(Posted 2010) [#1]
I am writting a program in which there are some code which does not work an I need help to fix it, please.

I cannot select with mouse second boxe of my code and I do not found what is wrong in my code.

This is my code bugged:




I know that if someboy help me, I will save a lot of time and I apreciate any help founded in this forun, some times.


Warner(Posted 2010) [#2]
You should only use MouseHit once each loop.
So use:
mh = MouseHit(1)

And then fill in 'mh' whereever you need to use MouseHit.


bashc(Posted 2010) [#3]
OH! now it works correctly!


I do not knew this thing about mouse command.

Thank you very much for help Warner