|
-
Aug 29th, 1999, 01:48 AM
#1
Thread Starter
Member
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.
-
Aug 29th, 1999, 04:55 PM
#2
Frenzied Member
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
------------------
-
Aug 29th, 1999, 08:17 PM
#3
Junior Member
The image-control is to slow. In a slower mascine the flickering will be more notisable.
Use "PaintPicture" or API "BitBlt" instead.
-
Aug 29th, 1999, 10:41 PM
#4
Thread Starter
Member
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.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|