72
« on: November 13, 2008, 09:48:04 PM »
You should probably not do it in the game loop, but create another script running an infinite loop, but only doing that cursor stuff and attach it to the game. Remember, WME can use script multitasking.
So the load intensive game loop will run with the high sleep timeout, while your script can run with a lower timeout. But you should NOT run the second loop without any sleep() at all.
But, it's a far better way to change the cursor at the enter and exit event methods of the objects in question. It is more work to do while developing the game, but it pays off, for the work is only done when needed, and you can define special cursors for every single object -- and it is the much "cleaner" way.