Jump to content
  • Advertisement
  • entries
    359
  • comments
    237
  • views
    189175

I am a naughty monkey.

Sign in to follow this  
Telastyn

120 views


public static void KickOff() {
basero icc = image_manager.manager.Load("StudioLogo");
icc.rerect(new identical_rect(ro_root.guiroot.tblr));
renderable.AlphaFadeEffect Fader = new renderable.AlphaFadeEffect(icc);
Fader.OnEnd += delegate() {
baseso moo = sound_manager.manager.Load("moo");
moo.OnEnd += delegate(baseso src) {
renderable.AlphaFadeEffect DeFader = new renderable.AlphaFadeEffect(icc, true);
DeFader.OnEnd += TransitionTwo;
};
moo.Play();
};
Fader.push_onto(ro_root.guiroot);
}



Oddly enough (if perhaps slightly unsuprising), the nested anonymous delegates behave properly. The logo fades in, "moo" is played, and then the logo fades out.
Sign in to follow this  


0 Comments


Recommended Comments

There are no comments to display.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!