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 <[EMAIL PROTECTED]> 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 coor
> 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
Okay I took your idea Alan and I finally got the outcome that I wanted.
Thanks.
On 9/22/07, Lamonte Harris <[EMAIL PROTECTED]> wrote:
>
> I don't think thats the actual problem, its the part where I'm actually
> trying to check what block im in. I got a feeling my numbers are off. It's
> confuse
I don't think thats the actual problem, its the part where I'm actually
trying to check what block im in. I got a feeling my numbers are off. It's
confused me for some big now.
On 9/22/07, R. Alan Monroe <[EMAIL PROTECTED]> wrote:
>
>
> > def check_mouse(self,mouse):
> > m1 = mouse[0
> def check_mouse(self,mouse):
> m1 = mouse[0]
> m2 = mouse[1]
Can you just divide m1 and m2 by 100?
Alan
Well I was trying to get the current area of a Tic Tac Toe box:
http://uni-code.com/MADIMG/1/afdeUntitled-1.gif
The first 3 boxes worked and printed 1,2,3 then when I got to all the other
ones it just spazzed.
def check_mouse(self,mouse):
m1 = mouse[0]
m2 = mouse[1]
x