Hello :)
I have some problem with how to stop the world >.< so basically i want to stop the music when it go to another world, but the music still playing .-. i have no idea why, >.< please help
here's my code
(Actor class)
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Testing1 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Testing1 extends Actor
{
/**
* Act - do whatever the Testing1 wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
clickedCheck();
}
public void clickedCheck()
{
if (Greenfoot.mouseClicked(this))
{
((World1)getWorld()).stopped();
Greenfoot.setWorld(new World2());
}
}
}

