This site requires JavaScript, please enable it in your browser!
Greenfoot back
Infucoder
Infucoder wrote ...

2013/7/7

Noob problem.

Infucoder Infucoder

2013/7/7

#
Ive just started my 1st project, and there is no ''grid'' where the ''world'' is, just blank. This makes it impossible to click ''new wombat'', an option which is also missing. Help plz?
danpost danpost

2013/7/7

#
Chances are you are missing a constructor in the Wombat class. Make sure the following is in that class.
public Wombat()
{
}
And for the blank screen, you probably need to set a background image in your world class.
davmac davmac

2013/7/8

#
It's also possible that you just need to compile your classes (click the "compile" button).
Kartoffelbrot Kartoffelbrot

2013/7/8

#
@ danpost: If you don't det amy background image for the world it is white.
danpost danpost

2013/7/8

#
@Kartoffelbrot, they screen would not be white if any (non-flat-white) background image was set.
Kartoffelbrot Kartoffelbrot

2013/7/8

#
Then it is transparent and it seems to be white.
danpost danpost

2013/7/8

#
That is not what I meant. I was not disputing what you were saying. In fact, if you do not set a background image, the default image is a flat-white background which appears to be transparent, but is not. You can test it out if you wish. Set the background image with:
setBackground(new GreenfootImage(getWidth(), getHeight()));
You will be able to tell it is transparent by moving the mouse pointer around onto different objects (like the Reset, Run and Act buttons). My point above was to provide possible reasons for the screen to be (or appear) 'blank'. The use of 'blank' without further qualifications is fairly broad and cannot be taken as being from a specific set of circumstances. This also means that the screen may not necessarily appear to be a white color (as this was not stated, either).
Kartoffelbrot Kartoffelbrot

2013/7/9

#
Ok
You need to login to post a reply.