Will try to script that in once I have time to spare from my current game hehe...
The mouse click movement issue is due to the game being scaled to 800x600.
Clicking on the bottom and right side of the screen towards the border causes movement issues too.
Even the death laser goes out of screen which should not as it is locked to where the mouse is within layout.
Tested on 1024x768, it all works fine (except for humping blades <img src="smileys/smiley5.gif" border="0" align="middle" />
Ya, controls are simple as I was just testing around.
For player movement,
- an invisible sprite is locked to mouse cursor
- on left click, crosshair is created on mouse cursor (invis sprite)
- player is set to move to crosshair
- there is a variable to allows only 1 crosshair to be made and to lock player movement to the crosshair.
A was a simple idea and it worked then <img src="smileys/smiley4.gif" border="0" align="middle" />