changing text

How do i display text in a box than when a button is pressed the text changes to different text?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    There are several ways to do this. Are you just needing to toggle between two sets of text or are you making a system where you can display text1, then text2, then text3, then text4, etc.?

  • MeepedMeeped Member Posts: 31

    You could use an image creating program such as photshop or paint.net to make text and save it as an image. Then you can make a rule that says:

    When touch is pressed

    Change image to: (file)

  • deej011deej011 Member Posts: 159

    I'm doing an RPG game so its for all the dialog in the game and i dont want to do it with images cause im already gonna have way too many images i was really looking for a way just to use the display text attribute.

  • MattButlerStudiosMattButlerStudios Member Posts: 486
    1. Create an attribute (game.myText)
    2. Display text ("your text here")
    3. Make a rule that says when touch is pressed -Display text ("your new text here")

    You can keep doing this for as long as you need the dialog to occur. All the text changes can be in a single actor and be activated during different times in the game.

  • jamie_cjamie_c ImagineLabs.rocks Member, PRO Posts: 5,772

    Here is one method of doing text/dialog for an RPG type game:

  • deej011deej011 Member Posts: 159

    Thanks guys that helps alot

Sign In or Register to comment.