Jump to content

  • Log In with Google      Sign In   
  • Create Account


#Actual0Circle0

Posted 08 December 2012 - 06:12 PM

I did what you did. I see what you mean. Every square works except the bottom row which seems to be 1 row down and 1 row left which makes it invalid. Hmm this points me in a direction. I'll see what I can't find out. Thanks for catching that.


EDIT: I figured it out. Now my math may be wrong but I thought this was correct.

HasSelection = X * 8 + Y
Then
X = HasSelection / 8
Y = HasSelection % 8

Is that not right?

Basically to fix it I eliminated HasSelection and instead put a X and Y placeholder that is transfered. That works. Something with this line
CheckY = ToLookUp % 8;
Guess that is not correct? Yet it works for every other square except the last row the 8th row.

#30Circle0

Posted 08 December 2012 - 06:09 PM

I did what you did. I see what you mean. Every square works except the bottom row which seems to be 1 row down and 1 row left which makes it invalid. Hmm this points me in a direction. I'll see what I can't find out. Thanks for catching that.


EDIT: I figured it out. Now my math may be wrong but I thought this was correct.

HasSelection = X * 8 + Y
Then
X = HasSelection / 8
Y = HasSelection % 8

Is that not right?

Basically to fix it I eliminated HasSelection and instead put a X and Y placeholder that is transfered. That works. Something with this line
CheckY = ToLookUp % 8;
Guess that is not correct?

#20Circle0

Posted 08 December 2012 - 06:07 PM

I did what you did. I see what you mean. Every square works except the bottom row which seems to be 1 row down and 1 row left which makes it invalid. Hmm this points me in a direction. I'll see what I can't find out. Thanks for catching that.


EDIT: I figured it out. Now my math may be wrong but I thought this was correct.

HasSelection = X * 8 + Y
Then
X = HasSelection / 8
Y = HasSelection % 8

Is that not right?

#10Circle0

Posted 08 December 2012 - 05:48 PM

I did what you did. I see what you mean. Every square works except the bottom row which seems to be 1 row down and 1 row left which makes it invalid. Hmm this points me in a direction. I'll see what I can't find out. Thanks for catching that.

PARTNERS