Funny Moves

new topic     » topic index » view thread      » older message » newer message

------=_NextPart_000_0007_01C05335.417606C0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all.

I've been working on a simple program that uses get_key() to "move" a =
bitmap. It does this by going through a loop to check if the right key =
has been pressed and moves it right or left accordingly in increments of =
1. What I'd like to know, is why when I go "left" three times, then hit =
"right" it goes left once more, then right. Why is this? And how can I =
fix it?

-Thanks
-Thomas

------=_NextPart_000_0007_01C05335.417606C0
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.2614.3500" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I've been working on a simple program =
that uses=20
get_key() to "move" a bitmap. It does this by going through a loop to =
check if=20
the right key has been pressed and moves it right or left accordingly in =

increments of 1. What I'd like to know, is why when I go "left" three =
times,=20
then hit "right" it goes left once more, then right. Why is this? And =
how can I=20
fix it?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>-Thanks</FONT></DIV>

------=_NextPart_000_0007_01C05335.417606C0--

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu