Hi there. I want to know if anyone can help me with this?
I want to have this page where I can select characters but I don't know how.
This is really urgent so PLZ help me out!
THX!
public int getCharselect()
{
return Charselect;
}
public int setCharselect(int x)
{
Charselect=x;
return Charselect;
} public void selected()
{
L4_SpaceWorld wereld = (L4_SpaceWorld)getWorld();
int Charselect=wereld.getCharselect();
}
public voic act()
{
selected();
if (Greenfoot.mouseClicked(this)) {
L4_SpaceWorld wereld = (L4_SpaceWorld)getWorld();
int Charselect=wereld.setCharselect(1);
}
}public int selected()
{
L4_SpaceWorld wereld = (L4_SpaceWorld)getWorld();
return wereld.getCharselect();
}public void act()
{
int charSelect = selected();
if (Greenfoot.mouseClicked(this))
{ /* omitted code block */}
}public void act()
{
int charSelect = ((L4_SpaceWorld)getWorld()).getCharselect();
if (Greenfoot.mouseClicked(this)) ((L4_SpaceWorld)getWorld()).setCharselect(1);
}public void act()
{
if (Greenfoot.mouseClicked(this)) ((L4_SpaceWorld)getWorld()).setCharselect(1);
}public void act()
{
int charSelect = ((L4_SpaceWorld)getWorld()).getCharselect();
if (Greenfoot.mouseClicked(this)) ((L4_SpaceWorld)getWorld()).setCharselect(1);
} public int setCharselect(int x)
{
Charselect=x;
return Charselect;
}
public int getCharselect()
{
return Charselect;
} private int Charselect;
public int setCharselect(int x)
{
Charselect = x;
return Charselect;
}
public int getCharselect()
{
return Charselect;
}