import greenfoot.*;
/**
* Write a description of class WaveOne here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class WaveOne extends Waves
{
/**
* Act - do whatever the WaveOne wants to do. This method is called whenever
* the 'Act' or 'Run' button gets pressed in the environment.
*/
public void act()
{
Fade();
}
public double fade = 255;
public void Fade()
{
{
while(fade != 0)
{
getImage().setTransparency(0);
fade = fade - 0.5;
}
}
}
}
