How do I use the keyboard fmg made to save the name you type in?

WeswogWeswog Member Posts: 1,171
edited November -1 in Working with GS (Mac)
I am making an app that requires a keyboard so I used fmg's and want to be able to save the name you type in and display the name on a different scene. So please help me I need this done very soon.

Cheers, Weswog

Comments

  • giacomopoppigiacomopoppi Member, PRO Posts: 914
    what you could do is create about 10 attributes
    then when you type the 1st letter in you change attribute 1 to ... (eg: a=1 b=2)
    then when you want to see the name again you have a scene
    saying if actor 1=1
    spawn actor=letter a...

    this is probably not the simplest way to do it though. it could take you hours to set it up.
    (this is just one way of solving it)
    i dont really know the keyboard tutorial well enough to help u further. :)
  • rebumprebump Member Posts: 1,058
    I think FMG was joining the letters entered to make a string (since he mentioned some issues with the spacebar), so if so, he probably is storing it in a game attribute.

    If he is not and he is storing each letter individually in an attribute, then you may be able to employ giaco's idea above more elegantly by combining the keyboard idea with the concept JGary outlines here to display custom image/sprites for each letter:

    http://gamesalad.com/forums/topic.php?id=2939#post-16311
  • rebumprebump Member Posts: 1,058
    Weird, I cannot seem to reply to this post (third and final attempt).

    If FMG is storing the letters as a single string, there is likely a game attribute he is storing it in that you can use.

    If he is storing each letter individually, then combine giaco's idea above with that is in this post here:

    http://gamesalad.com/forums/topic.php?id=2939#post-16311

    And have the image names with the letter or letter code in them for ease of reference in the "Change Image" behavior.
  • WeswogWeswog Member Posts: 1,171
    Thanks for your help but I need something more simple.
    @FMG Can you help me with this since you made the tutorial?

    Cheers, Weswog
  • WeswogWeswog Member Posts: 1,171
    I got it! It was sooooo easy all I did was put a display text behavior on the next scene:)

    Thank you anyway:)

    Cheers, Weswog
  • adadoadado Member Posts: 219
    I was trying to add to this thread earlier today on a PC and I couldn't post at all. Strange.

    Anyway, as you have found out, I think FMG was concatenating the letters entered for you.

    If, however, he wasn't (or you undo it), you can use Giaco's idea and combine it with the info here (from JGary) to make your displaying of custom letters easier:

    http://gamesalad.com/forums/topic.php?id=2939#post-16329

    This would work great for classic arcade style leaderboards (i.e. the top ten scores with the player's three initials for each slot).
Sign In or Register to comment.