Trollsplatterer

Help, tutorials and examples for Game Maker

Endurance 3d
click to visit
A survival game with many weapons and enemies.

RK-1 Revenge of the Rats
click to visit
Use RK-1 to defeat nasty burglar insects!
Guliseo Spirit
click to visit
Battle your way through 15 action-packed worlds!

Hexsweeper 2
click to visit
Minesweeper redefined!
Home Search/Browse Comments Trollsplatterer You can help! Links
Terms&Conditions This website has been designed for Firefox Design by Trollsplatterer (©2017)

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.

Ratings

General Rating
Your Rating*

Images

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.

Comments/Suggestions

By Comment
Someone who likes RTS
2011-04-03
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.