A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Text Based Game

  1. #1
    Senior Member
    Join Date
    Jan 2008
    Posts
    107

    Text Based Game

    Hi,

    I'm trying to get into flash game developing (without a programming background) and for my first project, I thought creating a simple game like Text 4 Dead (or Don't **** your pants) to be a good bet.

    Unfortunately, I don't know how to start it. Anyone has any idea how the developers of the mentioned games did it? Did they just created a bunch of frames on the timeline and every time someone writes the right words on the prompt it takes them to the next frame?

    And how do you create a prompt itself to accept the commands and guide you around the game?

    Sorry for so many questions, but I spent quite a while on Google and came back empty-handed.

    Thanks.

    P.S: I'm not sure if this was the right forum to post. If not, sorry.

  2. #2
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    I would suggest checking out www.gotoandplay.com and www.kirupa.com to learn the basics. Once you have a grasp on that then shoot for creating a simple game.

  3. #3
    Senior Member
    Join Date
    Jan 2008
    Posts
    107
    Hi sstalder,

    I already visited both sites you mentioned and didn't found anything useful. Most of the content I read was outdated/poorly explained/confusing/incomplete. Unfortunately, there are very few sites out there with good quality as 3.0 tutorials. People seem afraid of as 3.0.

    Unfortunately, at this point I'm not interested in creating a clone of pong, snake, tetris, asteroids or a basic shooter. I want to start with something simpler than that, but I can't find documentation that can help me.

    Now, the games I mentioned on the first post of this thread are rather simple. A tutorial showing how to build a similar game would be wonderful but apparently there isn't any. And yes, there are tiny bits of code here and there would probably help if I had a little more experience.

    That's why I asked the following

    Unfortunately, I don't know how to start it. Anyone has any idea how the developers of the mentioned games did it? Did they just created a bunch of frames on the timeline and every time someone writes the right words on the prompt it takes them to the next frame?

    And how do you create a prompt itself to accept the commands and guide you around the game?
    If I knew the answers of these questions answered, at least I knew what I needed to learn and research.

    Thanks anyway.

  4. #4
    Ө_ө sleepy mod
    Join Date
    Mar 2003
    Location
    Oregon, USA
    Posts
    2,441
    Writing a text game in flash is actually a fairly tricky proposition...to get the tools to start you'll need an input field and a large multiline output field.

    Here are the two APIs you'll need:
    http://livedocs.adobe.com/flash/9.0/...TextInput.html
    http://livedocs.adobe.com/flash/9.0/...TextField.html

    You'll also want to read up on Strings and working with text:
    http://livedocs.adobe.com/flash/9.0/...V3/String.html
    http://help.adobe.com/en_US/ActionSc...0204-7d8f.html
    Please use [php] or [code] tags, and mark your threads resolved 8)

  5. #5
    AS3 Mod
    Join Date
    Sep 2007
    Location
    O-H-I-O
    Posts
    2,385
    To add onto neznein's comments...

    Once you are familiar with manipulating text fields and strings I suggest using TweenLite (google it) to perform your moving / tweening operations. They have a lot of examples that could also help you out on their site.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center