[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] Anybody think they can help me with my small problem?



> Okay I took your idea Alan and I finally got the outcome that I wanted.
> Thanks.

Not sure you "got" what I meant :)

If you divide the mouse coordinate by 100, you'll automatically either
get a 0, 1, or 2 as the result. No need for any kind of "in
range(0,50)" comparison at all.

Alan