Hey,
I'm trying to access int method in world Class. Whenever I do that, I'm getting an error. Here's code I have:
code in my actor class:
code in my world class:
BridgeWorld world = (BridgeWorld) getWorld(); int test = world.getRandomNumber(100, 200);
public int getRandomNumber(int start, int end)
{
int number = Greenfoot.getRandomNumber(end - start);
return number + start;
}
