About | Rules and Guide | Sign In/Create Account | Write a Post
Construction1990’s Internet Montage? No!
Please excuse the site weirdness. Mike is fixing and making things.
Ludum Dare 31 — Coming December 5th-8th 2014!

  • ??? Begins: in 7 days, 22 hours, 11 minutes, 10 seconds
  • October Ends: in 8 days, 22 hours, 23 minutes, 10 seconds
  • Ludum Dare 31 begins: in 43 days, 23 hours, 11 minutes, 10 seconds
  • (FYI: Clock might be off) | Ludum Dare 31: Real World Gatherings (Now Open!)

    [ October Challenge 2014 | Resources | Submit/Edit | View All ]


    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]