Home | Rules and Guide | Sign In/Create Account | Write a Post | Reddit | #LD48 | #ludumdare on irc.afternet.org (Info)

Ludum Dare 30 — August 22nd-25th 2014 — Theme: Connected Worlds
  • Judging Ends: in 12 days, 22 hours, 47 minutes, 1 second
  • [ Real World Gatherings | Ludum Deals | Warmup Weekend (Games) | MiniLD #53 | Wallpaper (1) (2) (3) | Mailing List ]

    [ Play+Rate | Edit | View All Games | My Game ]


    Intro, and a Question

    Posted by
    September 17th, 2011 11:23 pm
    I began writing the novel a few days earlier, maybe I should start typing, 
    I'm about to finish...
    
    The night is turning to day, but I can't place the words on the typewriter, 
    so I get up from the desk, then walk to the window to lit a cigarette... 
    and right there and then the break of dawn.
    I know this sounds like some old, worn and tired Cat Stevens song, but maybe, 
    somehow, this is the right inspiration.
    
    Did you ever wake up to find things changed, a day like every other day, 
    yet the dawn breaks at a slightly different angle, forever changing your 
    notion of time?
    This is the intro to my game, I feel like I've got a terrific story going, yet I do not 
    have a clue how to make something like "Typing of the Dead" in Flixel.
    
    I got to be able to turn the story strings into an array, then check if the player has typed
    the proper key, but for that I need to check the array and asign to each string to a 
    FlashEvent.keyCode or something like that.
    Does anyone have an idea on how to do this?

    4 Responses to “Intro, and a Question”

    1. Felipe Budinich says:

      Yay! Progress, using:

      if(FlxG.keys[textArray[textPos]])
      {
      trace(textArray[textPos]);
      textPos += 1;
      }

      I managed to type “Hello” heh (then crashed and burned due to trying to print something at textArray[4] but YAY PROGRESS

    2. SusanTheCat says:

      Woot! Typing of the Dead is one of my favorite games.

      Susan

      • Felipe Budinich says:

        Yeah mine too, it’s just too absolutely bizarre, tho I’m not going for the action angle, but more of a storytelling existencial/cosmic horror angle (I want to get this entry into http://www.experimentalgameplay.com too).

        I’ve made more progress:

        In order to capture input with Flixel I need to capitalize each string, then split it into one character strings, then replace whitespace with “SPACE”. All of this is done, but currently it just outputs as traces in the debugger, gotta do some oldschool 2D tiling with bitmap fonts in order to display something to the user.

    3. Felipe Budinich says:

      just in case someone is wondering how I turned the string into a array containing a sequence of inputs:

      public static function stringToInputArray ( input_string : String ) : void
      {

      input_string = input_string.toUpperCase();
      input_array = input_string.split(”)

      for (var i:int = 0; i < input_array.length; i ++ )
      {
      if (input_array[i] == " ") {
      input_array[i] = "SPACE";
      }
      }
      trace(input_array);

      }

      If you pass "Hello World" as the input_string, it will give you "H,E,L,L,O,SPACE,W,O,R,L,D" back

    Leave a Reply

    You must be logged in to post a comment.


    All posts, images, and comments are owned by their creators.

    [cache: storing page]