does anyone have any idea how i would get a sprite to line up with my mouse?
I've programed in 2d and that seemed pretty easy (just tell b3d to draw the image and mouseX() and mouseY())
However now that I'm working with 3d if i tell b3d to draw the sprite at the mouseX() and mousey() i have to hold the mouse at the top left of the screen to get it at the center of the map
What I'm really looking to do is move the mouse to the left edge of the screen and have the camera move left, or move the mouse to the top end of the screen and have the cam move up
if anyone can explain to me what i need to do, that would be much appreciated, or any examples would be wonderful
-Droolbucket
I've programed in 2d and that seemed pretty easy (just tell b3d to draw the image and mouseX() and mouseY())
However now that I'm working with 3d if i tell b3d to draw the sprite at the mouseX() and mousey() i have to hold the mouse at the top left of the screen to get it at the center of the map
What I'm really looking to do is move the mouse to the left edge of the screen and have the camera move left, or move the mouse to the top end of the screen and have the cam move up
if anyone can explain to me what i need to do, that would be much appreciated, or any examples would be wonderful
-Droolbucket