Glimmr Canvas Animation

version 1/111030 by Erik Temple

  • Home page
  • Beginning
  • Previous
  • Next



  • Chapter - Delaying the player's input

    Section - Delaying input until all animations end

    To delay input until all animations are complete:
        #if utilizing animation debugging;
        say "[>console][CA]Input delayed while all running animation tracks complete.[<]";
        #end if;
        while animation is queued:
            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.]