GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Question about text

I just downloaded gamesalad an hour or so ago,It is so easy to use even with the well put together outdated tutorials.I made a background,I made an actor,I made a text box.I even figured out how to make text appear when I left click.
So how do I make the first text disappear and another take its place?
When I add a second display text behaviour it just show both text at once.

Am sorry I suck at math I have no programming experience and this is my first game.

Comments

  • lycettebroslycettebros Posts: 1,598Member, PRO
    edited June 2013
    Hi @juliaa
    You can make an attribute that changes in value and then that value tells which text to display in your text box.
    Eg. click on this box makes your attribute add '1' each click...the number of the attribute then determine which text to show...
    if attribute = 1 then display this text
    if attribute = 2 then display this text

    Or put the text values into a table and using the a changing attribute select the corresponding table value and display the text from that table cell.
  • juliaajuliaa Posts: 7Member
    Tables? does this work like excel? I don't know about table or attributes yet.I think I saw a table tut am going to find it.
    Ty for your response
  • lycettebroslycettebros Posts: 1,598Member, PRO
    Tables in GS are like a spreadsheet so you can store different values in the cells of a GS table. You can create a table from the 'home' screen of GS you will see a table tab.

    I would probably do what you want with an attribute first as they are more important to learn in the beginning - understand their power and use before moving onto tables.
  • juliaajuliaa Posts: 7Member
    Ty am going to learn about attributes as well.
    But the table way is so easy I already did it.Thank you so much for your help.
  • lycettebroslycettebros Posts: 1,598Member, PRO
    edited June 2013
    My pleasure, feel free to reward me with a 'like' or 'awesome' :)
  • juliaajuliaa Posts: 7Member
    ok you got awesome.
    Can you point me in the direction of how to use attributes? I was so tired last night I just realize my text where displaying random.That's not what i wanted I wanted them to display in a specific order.which behaviour can I use?
  • FajlajpFajlajp Posts: 666Member
    Here is how I would do...
    Make a table with 1 column(with "text")
    and "x" rows. In every row you put in you text.
    Ex. Row 1- Hi, How are you
    Row 2- Fine thank you.
    Row 3- Great. Have a nice day.
    Then make a game.attribute(integer) and call it "WhichRow?")
    Now you make a rule in the box that should display the next.
    When touch is pressed
    -Change attribute game.whichrow? To game.whichrow?+1

    And then you drag in the display text behavior(not in the rule) and press the expression editer. Then go into fuctions and press "TableCellValue"
    Then it should stand tablecellvalue(table,row,columnk)
    Replace the table with you table
    Replace row with game.whichcolumn?
    Replace column with 1

    There you have it :)

    //Fajlajp
  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,913Member
    Checkout my video tutorials I have a series on tables and my logic series teaches all about attributes. Just click the link in my signature.
  • juliaajuliaa Posts: 7Member
    edited June 2013
    Fryingbaconstudios Am watching your videos now thank you.It is a not easy the pc version is set up differently.

    Fajlajp you are a super genius thank you so much.It worked.
  • PBEmpirePBEmpire Posts: 676Member
    You can invest yourself a mac. I mean the pc version is quite bad, though i like the fact that you can quickly see actor attributes without leaving the scene.
  • The_Gamesalad_GuruThe_Gamesalad_Guru Posts: 9,913Member
    @juilaa although the interface is different, try and forget about the interface and grasp the logic concepts. Even though the interface is different attributes are attributes and the coding is the same.. The key to being a power user is to understand what is happening and why not how in the interface you do it. :)
  • juliaajuliaa Posts: 7Member
    PBEmpire your totally funny if I had the money I would buy a pc specific game maker.I bet it would be cheaper than a mac.Yeah the pc version is pretty bad, good thing I just want to make a simple game.
    Thank you FryingBaconStudios.I think I get the basic concept.it just takes practice and patients.
This discussion has been closed.