I need help with two different things.I'm trying to make a game similar to the stupid test, the moron test etc. I'll be using shapes and then asking to click on the shapes in a certain order. what is the best way I can go about doing this? For the shapes should I make separate actors for each shape and assign the corresponding image? If I do that then I have this white box around the circle which interferes with my background image. I would use code to make the shapes but I really have no idea how to implement the methods. would this work
what I need to be able to do is draw a shape (mostly circles, rectangles, triangles and square which I guess are technically rectangles). I will then use the coordinates of the mouse and the shape to see if what needs to be clicked has been clicked. but as for the mouse is there a better class I can use then MouseInfo or will that do? I havent been able to find a method which allows me to check whether the mouse has been clicked(not pressed).
I also have another problem with the transparency of my background.what happens is when I click run the background becomes opaque. here is the code I'm using
public Image(Color color)
{
GreenfootImage image = getImage();
image.drawRect(250,250,10,15);
image.setColor(color);
image.fill();
setImage(image);
}public void background()
{
setBackground("background.png");
GreenfootImage background = getBackground();
background.setTransparency(100);
}
