Coding the Cursor to work for aiming

Posted By: rev

Coding the Cursor to work for aiming - 05/12/09 23:14

Ok so i'm trying to make a game with some mates, and i have absolutely NO idea how to code, but i'm trying to figure out how i can code the cursor to work with aiming.
Originally we had one in the engine, but because the scaling of the level is so small, a 10x10 pxl image is massive and horribly pixelated, so i started looking up the cursor. I have that in now but my problem is i dont kow how to clamp the cursor inside the window and align it to work as a targeting recticule. Any suggestions?
Posted By: KiwiBoy

Re: Coding the Cursor to work for aiming - 05/13/09 05:56

Setting mouse mode to show cursor and asigning the cursor your targeting image will do the trick but to cage the cursor requires Window access protocals according to some posts here.
Do a search and you should find the relevent threads.
© 2023 lite-C Forums