Crossword Game Help!?

triskit124triskit124 Member Posts: 11
edited February 2012 in Working with GS (Mac)
Hey Everyone,
We're currently making a crossword type game where you have to line up letters to create a word, we have the word database, we just need to figure out how to extract the word from the actors. For example, if I had 3 letter actors line up on a grid, how would i extract those letters and tell the game I just spelled that word? Any help would be greatly appreciated!

Thanks in advance!

Comments

  • MotherHooseMotherHoose Member Posts: 2,456
    well … what you describe is not a crossword game (none of the letters cross in different words) …
    more like anagrams or letter-arrangement games
    EX: Text Twist

    good you have your word database … now you have to extract that data simply put it into GS

    as a developer you are going to have to know what letters in each masterWord can combine to make 3-4-5 or more letterWords
    that is: all possible words that can be extracted from the masterWord

    then you will have to name/tag/selfAttribute your letter actors to store their letterValue
    and when placed by player … add that value to a text attribute
    and check that word against the all possibles for that masterWord

    best in a big,big project … to get everything to work on one word first!

    @};- MH
  • simo103simo103 Member, PRO Posts: 1,331
    @triskit124 .. I found that simple assigning a letter to a text attribute and then combining those attributes into your Answer word attribute would give an error when trying to see if that word matched. I needed to use ""..Game.Letter1..""..GameLetter2..""..Game.Letter3.."" and that worked for me.
  • triskit124triskit124 Member Posts: 11
    Thanks for the help guys, but how would I gather that information, say if three actors line up, how would I read the three letters and check them to see if they make a word? And, how would I tell the game that those three actors lined up in the firstplace?
  • MotherHooseMotherHoose Member Posts: 2,456
    1 actorBlank …myLetter textAttribute … drag one for each letter to scene … name them 1; 2;3
    when overlap/collide with letter change myLetter To: letter.Name

    when player is done with those 3 letters … changeAttribute: game.Word To: scene.layer.1.Name..scene.layer.2.Name..scene.layer.3.Name..
    then check that against allPossible words for the masterWord

    @};- MH
  • simo103simo103 Member, PRO Posts: 1,331
    edited February 2012
    @triskit124 ... I would use three other Answer actors 1, 2, and 3 to register a collide or overlap and when that happens assign the Letter with that Guess Actor to the Letter1 Attribute. The next Guess Actor would assign its letter to Letter 3 attribute when colliding with say Answer 3 and likewise with the last Guess Actor. You then need the Answer word constructed as in my post above then that would need to be run through the word checker program that TSB offered up for download.

    EDIT: or like MH said which sounds about the same :D
  • triskit124triskit124 Member Posts: 11
    Ok, I will try that. Thanks for your help guys!
Sign In or Register to comment.