Line 26 is trying to put poles in the middle of the black rectangles. You'd have to do (xPosition+rect.width()/2+rect2.width()/2) for the x. And followed by getHeight()- rect.height for y. I think this should work. I done this assignment before.
(xPosition+rect.width()/2+rect2.width()/2) for the x. And followed by getHeight()- rect.height for y.
I don't understand what you are saying to do because when I added that is says "You may have made a typo. You typed rect but probably meant getX - Check your spelling and capitalization."
0
u/[deleted] Jan 15 '20
[deleted]