Tuesday, 28 May 2013

X-Coordinates and Y-Coordinates (AGAIN!)

Asked Ryk again, what would happen for the pawns (because I have to finish it by Friday; and the instructions by Sunday): 

While moving the pawns, it's a similar if statement: 

if (coordinate is too far out of range)
{
Change the coordinate by a certain amount to make it turn.
}

So, it would work using the coordinates that were found previously. 

And it would work using a "getX();" and "getY();" to find out where exactly where to put the icons. I should have 2 set coordinates - one for the user and one for the computer. Probably top and bottom would work on the left side. Though I have to find a way to be able to see the coordinates. 

I just tried it, and the mouseMoved, the mouseDragged, mouseMoved, mouseClicked didn't work. Until later.....>_< 

No comments:

Post a Comment