-
I'm working on a simple game where you move a spaceship around with your mouse. The window is 640x480 in size and when the user moves the mouse, a space ship follows accordingly even if the mouse is outside the window (my screen res is 800x600). I'm using some API calls to return the mouse position. Everything works great except the redrawing. The space ship flickers when it moves. Its not really serious but its still noticeabe. I'm using the image box control. I don't have an extremely slow computer either (PII 400) so I wonder what it would look like on slower systems. Is there any way to speed this up? I've thought of using DirectX but I have NO idea of how to implement it or use it. Thanks.
-
Is the picture always with the mouse cursor or does it move toward it? For Example: Is the picture following the mouse cursor, or on it?
Steve
------------------
-
The image-control is to slow. In a slower mascine the flickering will be more notisable.
Use "PaintPicture" or API "BitBlt" instead.
-
The picture moves in the direction that the mouse moves. It isn't necessarily in the same spot as the mouse, it just travels in the direction that the user moves the mouse. I looked that the bitblt API and I think i'll use that. Thanks.