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!


1 2 3 4 5 6 7 8 9 | public int getCharselect() { return Charselect; } public int setCharselect( int x) { Charselect=x; return Charselect; } |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | 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 ); } } |
1 2 3 4 5 | public int selected() { L4_SpaceWorld wereld = (L4_SpaceWorld)getWorld(); return wereld.getCharselect(); } |
1 2 3 4 5 6 | public void act() { int charSelect = selected(); if (Greenfoot.mouseClicked( this )) { /* omitted code block */ } } |
1 2 3 4 5 | public void act() { int charSelect = ((L4_SpaceWorld)getWorld()).getCharselect(); if (Greenfoot.mouseClicked( this )) ((L4_SpaceWorld)getWorld()).setCharselect( 1 ); } |
1 2 3 4 | public void act() { if (Greenfoot.mouseClicked( this )) ((L4_SpaceWorld)getWorld()).setCharselect( 1 ); } |
1 2 3 4 5 | public void act() { int charSelect = ((L4_SpaceWorld)getWorld()).getCharselect(); if (Greenfoot.mouseClicked( this )) ((L4_SpaceWorld)getWorld()).setCharselect( 1 ); } |
1 2 3 4 5 6 7 8 9 10 | public int setCharselect( int x) { Charselect=x; return Charselect; } public int getCharselect() { return Charselect; } |
1 2 3 4 5 6 7 8 9 10 11 12 | private int Charselect; public int setCharselect( int x) { Charselect = x; return Charselect; } public int getCharselect() { return Charselect; } |