Monday, May 16, 2011

Movement Problem SOLVED

On Friday I was looking at many different codes and I got way too confused. Today I was very discouraged but Mr. Spanos encouraged me and found something very neat. Basically all you have to do in order to move is change the x and y coordinates, like add or subtract from the current x,y values.  All you do is use this code : setLocation(getX(), getY()) and you can + or - after "getX". Now i can freely move around on my grid.

No comments:

Post a Comment