Trollsplatterer

Help, tutorials and examples for Game Maker

The Invention of Life
click to visit
Game for the GameJolt Invention Contest.

Platformer Engine
click to visit
An Engine to help you start a 2D Platformer Game.
RK-1 Revenge of the Rats
click to visit
Use RK-1 to defeat nasty burglar insects!

Paper Flight
click to visit
3D racing game with custom paper airplanes.
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.