basphoto.blogg.se

Stencyl game attributes
Stencyl game attributes









Typing begins again at the top left corner. stopchanĬlears the content of the dialog box. Like above, but can be used for ambient BG sounds or music. Maybe use it for a cutscene when timing of the dialog is crucial. noskipĭisables ability to skip through text. This enables the ability to skip text by holding the text skipping buttons if it was previously disabled. Sends a message to a scene behavior attached to the current scene. .I guess that's supposed to be a Majora's Mask banker reference?// messagescene This takes the text representation of some attribute and inserts it into this position in the dialog. Let's fill it in with a "Boss" actor that we've previously placed in a Game Attribute called "Boss 2".//

Stencyl game attributes code#

The above code will set the value of "_currentTarget" in "Target Behavior" to whatever is represented by the ellipses // The actor we've identified as "Player" has "Target Behavior" attached. Because is useful within other tags, let's start an example with another tag.// This tag is primarily intended for use WITHIN other tags, if you want to refer to some value that can't be expressed normally in this dialog editor. I hope it's just hearsay.īusiness is sure good with the dragon around, warying the townsfolk, but I have to keep an eye on my stock, make sure it doesn't steal anything.įrom the place you enter an tag, it can be followed by multiple tags and then a single tag if desired.Įventually, it has to be followed by an tag so that the dialog system knows where to resume normal dialog. >The legends say that the dragon will come back with a vengeance for he who sealed him. >We'll be forever in your debt, hero! Allow me to give you a special discount. Personalize messages, or give the player valuable info based on his current status in the game. Like but when dialog continues, the dialog box is automatically cleared.Ĭontrol what's seen and what isn't. Careful, this example is probably overkill as far as causing stops in the dialog.// bc The player has to press the continue button, set in this extensions prefs, in order to continue the dialog at the three points. Shows a pointer and waits for user input. Dialog will be paused for half a second before continuing.// but Will wait until the game attribute, "Cutscene Ongoing", becomes false before continuing with the dialog.// Assuming faceImagePrefix="Face ", this would show image "Face Lenny.png" from your extras folder//ĭialog will wait for some attribute to reach a value before proceeding. This actually depends on the preference you have set for this extension. Display the name Lenny in a namebox// hidename Displays the image "heart.png" from the extras folder after the text "I love you!!"// Includes an image in your dialog, inline with the text. "Mars" will go to "Space Center", but it's only shown if the game attribute "Space Unlocked" is true.// "Back Home" takes you to a dialog called "Home"// Selecting "The Pool" will take you to a dialog called "Pool Part 1"//

stencyl game attributes

For general info and help regarding Dialog Extension tags, see the Appendix sections:ĭisplay a list of options for the player to choose from.









Stencyl game attributes