Game Development Community

Draw a reticle at mouse pointer

by Michael Morrison · in Torque Game Engine · 12/03/2005 (3:12 pm) · 1 replies

Hello, quite the newbie question here! almost feel silly for asking, but I've been looking through code and resources all day :)

compiled torque 1.4 fine, did tutorial fine, have played with the mods... was ready to go! and now I'm stuck on my first project ;)

1) I want to change the movement system. you still move with WASD, but there is no mouselook. the mouse pointer is free to look around on the screen, and where it is pointing, I want it to draw a reticle

2) then, to rotate your player, I want you to have to hold down the right mouse button and drag

I think I can figure out the second if someone can just point me in the right direction for getting my first problem done.. but help on both would be appreciated ;)

I made up a reticle.. but I have no idea how to load it, and then to place it wherever the mouse pointer is (and to move along with the mouse). if the mouse pointer is on the terrain, the reticle shoudl be on the terrain. if it's on a building, it should draw on the building, etc..