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

I am a naughty monkey.

Sign in to follow this  
Telastyn

127 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!