MouseHit problems

Monkey Forums/Monkey Programming/MouseHit problems

degac(Posted 2011) [#1]
This is a simple code: click for the first coords, and the click for the 'end' coords.

For me it doesn't work.
If you comment out the GetLast() call OnUpdate() seems to be never catched...
Tested in HTML5 (FF and Chrome) and Flash (it bombs out!)


Soap(Posted 2011) [#2]
You can't use the While loop like that. It will not continue drawing and picking up input. You need to think outside a single frame.



This code works for sure in HTML5, and I doubt it'll have any problems in anything else.


degac(Posted 2011) [#3]
Ok, thanks for you help!