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

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



Yeah I did it another way, I divided by 2 instead, it was much clearer to me then.

On 9/22/07, R. Alan Monroe < amonroe@xxxxxxxxxxxxxxx> wrote:
> 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