Greenfoot.setWorld(new world(Uitleg));
Hey everyone,
This is my button:
Code :
public class Uitleg extends Actor
{
public int Uitleg;
public void act()
{
setUitleg();// Add your action code here.
}
public void setUitleg()
{
if (Greenfoot.mouseClicked(this))
{
Greenfoot.setWorld(new world(Uitleg));
}
}
}
Whenever i click on it i want it to go to a different world called tutorial..
I tried Greenfoot.setWorld(new tutorial(Uitleg));
But that didnt work..
Help!!
I made a subclass of world.. but then It gives me an error at the Super(80,80,10)...
It says INT not found or something
Re: Greenfoot.setWorld(new world(Uitleg));
Quote:
It gives me an error
Please post the full text of the error message.