Glimmr Canvas Animation

version 1/111030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next

  • Section - Delaying input until just one animation has ended

    To delay input until (track - an animation track) is complete:
        #if utilizing animation debugging;
        say "[>console][CA]Input delayed while the animation track [i][track][/i] completes.[<]";
        #end if;
        while track is animation-active:
            wait for glk input;
            if the current glk event is glk-initiated:
                let event-outcome be glk event handled in null-event context;[Handles the event; we'll just ignore the outcome since it doesn't stem from player input.]