How do I change the text on speech bubbles

Modified: 2008/05/01 11:16 by BenAnderson - Categorized as: Game Creator, How To Guides
Edit

Change the text on speech bubbles

Basic Idea: Add a speech bubble actor then add states and customize the appearance changing the text in the text block. Place it above the actor you want to talk.

Sample Game: http://www.popfly.com/users/team/HowDoI-SpeechBubbles

Details: Actor->Search->"Speech"

Image

Select a speech actor (Click the image to view full size)


Actor->Speech Bubble->New State

Image

Add a state (Click the image to view full size)


Actor->Speech Bubble->Appearance->Text Block->Edit Text

Image

Edit the text (Click the image to view full size)


Actor->Speech Bubble->Behaviors->State Change->State & Filter

Image

Add a state change behavior (Click the image to view full size)


Actor->Speech Bubble->Behaviors->State Change->State->State 1

Image

Select State 1 (Click the image to view full size)


Actor->Speech Bubble->Behaviors->State Change->Filter->Uncheck State 1

Image

Set the behavior to only apply to default state (Click the image to view full size)


Actor->Speech Bubble->Behaviors->State Change->Event

Image

Choose An Event (Click the image to view full size)


Scene->MainScene->Speech Bubble
Image

Add the Speech Bubble (Click the image to view full size)


Notes:
  • You can also update the text in a speech bubble to match an actor's property through custom code without changing states by using the following code for a on property change behavior:

this.GetVisualRoot().FindName("text").text = 
    Game.CurrentScene.GetActor("Pirate 1").GetValue("Speech");

Privacy. Terms of Use. Trademarks.
ScrewTurn Wiki version 2.0.22. Some of the icons created by FamFamFam.