guys.....first of all i am a beginner at working with greenfoot. I have to make a game for a project and i don't know how to solve my problem.
I want the two platforms that i have (both written in code) to be unaccessable; So that my boats cant sail over these
platforms..
This is the code i have until now:
getBackground().setColor(java.awt.Color.white);
getBackground().fillRect(200, 0, 380, 170);
getBackground().setColor(java.awt.Color.DARK_GRAY);
getBackground().fillRect(200, 170, 380, 40);
getBackground().setColor(java.awt.Color.DARK_GRAY);
getBackground().fillRect(200, 550, 380, 40);
getBackground().setColor(java.awt.Color.gray);
getBackground().fillRect(200, 590, 380, 200);
And my second question is i want the boats to collide against eachother when they touch, and not sailing over eachother. I'm sorry that my english is not so good but i hope you guys can understand what im saying.