How do I make text style text dialogue??

LonestarLonestar Member Posts: 28
edited November -1 in Working with GS (Mac)
Hi I know this is a probably relatively easy question but here goes...

Im currently trying to make a system were the player can click through text dialogue like a button (like in a RPG game). The way i figure i have two options.

1. Make small .png files with the text on it and have the player click through the individual text images.

2. Have all the text written dynamically ( would prefer to do it this way).

Any thoughts on how to do this? Any help would be appreciated

Comments

  • synthesissynthesis Member Posts: 1,693
    only single line text at the moment in GS.
    Maybe down the road we will get multi-line text and better text formatting.

    Looks like option 1 will give you the most control over the look.
  • LonestarLonestar Member Posts: 28
    Cool thanks so much for the input.
    I was thinking about using the option+return trick. But I'll try number 1

    As for the clicking through images option I'm still kinda lost there. I can use the change image action but after that i don't know how to make it click through a series of images.
    ex.
    image1.png to image2.png to image3.png to image4.png

    Right now it will just let me go from image1 to image2
  • synthesissynthesis Member Posts: 1,693
    use a counter.
    in the actor...set a self attribute to ImageID
    Then set the default attribute assignment (1)

    Then when touch is released...
    self.ImageID = self.ImageID+1
    then set up the rules that:
    when ImageID = X
    change your image to "imageX"
    etc.
  • LonestarLonestar Member Posts: 28
    You are a golden god!

    Will do

    thank you, thank you, thank you
  • synthesissynthesis Member Posts: 1,693
    Pay it forward. :)
  • LonestarLonestar Member Posts: 28
    Always (^_^)b
  • LonestarLonestar Member Posts: 28
    I ran into a little problem.

    - I put in the ImageID attributes
    - I set up some of the rules

    this is where i get a little lost
    /////

    then set up the rules that:
    when ImageID = X
    change your image to "imageX"

    ////

    That part has me a little confused. Am I making a change attribute action?

    Here is a screen shot
    http://www.lonestar-games.com/wp-content/uploads/2010/03/whatswrong.tiff
  • synthesissynthesis Member Posts: 1,693
    drag a "change Image" behavior into the rule. Then set the image to change to.
    My X represented "whatever".

    [ EDIT ]
    actually...do the following:

    Rule 1:
    when actor is touched and released:
    .......change attribute: self.ImageID = self.ImageID + 1

    Rule 2:
    when self.ImageID = 2
    .......change Image to...

    Rule 3:
    when self.ImageID = 3
    .......change Image to...

    etc.
  • LonestarLonestar Member Posts: 28
    Works great!
    Thanks!
Sign In or Register to comment.