Help, tutorials and examples for Game Maker

Spiral Lords
click to visit
Lead your empire to conquer the galaxy.

Endurance 3d
click to visit
A survival game with many weapons and enemies.
The Black Hole that Wants to Eat Me
click to visit
Stranded in space close to a black hole...

Platformer Engine
click to visit
An Engine to help you start a 2D Platformer Game.
Home Search/Browse Comments Trollsplatterer You can help! Links
Terms&Conditions This website has been designed for Firefox Design by Trollsplatterer (©2018)

3D Mouse Look  download now
by Jack Oatley

This example shows how to use the mouse in a 3D world. The virtual mouse position is set by a script and kept in the global bariables X and Y.


General Rating
Your Rating*


Look with the mouse
Look with the mouse When the mouse cursor is placed above the character, the character rotates towards the cursor, even though mouse_x and mouse_y no longer match with the actual position.
Looking left
Looking left global.X and global.Y are now used as if they are mouse_x and mouse_y, the character turns towards this new vitual mouse position.


By Comment
Someone who likes RTS
Thank you!, going to try it now.

* : The rating makes use of your IP-address to remember your vote. IP addresses may change, but your vote will be kept, even though it may no longer be visible here.