MouseHit problems
Monkey Forums/Monkey Programming/MouseHit problems
| ||
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!) |
| ||
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. |
| ||
Ok, thanks for you help! |