Hey! So i'm working on some code for making a Frogger video game. Right now, i'm working on a section of code that allows the code to display a message when the program runs. Here's what it looks like:
I'm still kind of new to this, but its giving me the syntax error (incompatible types) at the end of the parenthesis. Any suggestions on what else i could do for this, or how to fix it? Thanks!
public void Message()
{
if (Greenfoot.start())
{
bg.drawString("Use the arrow keys to move!", 134, 360);
bg.drawString("And have Fun!", 134, 50);
}
}
