Category:Tidbits and Snippets: Difference between revisions

From Adventure Game Studio | Wiki
Jump to navigation Jump to search
Line 8: Line 8:
Using '''special symbols / characters''' in '''string formatting''':  
Using '''special symbols / characters''' in '''string formatting''':  


* To use the '''%''' symbol in strings:
To use the '''%''' symbol in strings:
** <code>Display("The %% is the percent symbol.");</code>
** <code>Display("The %% is the percent symbol.");</code>


*To use '''quote marks''' in strings:
To use '''quote marks''' in strings:
** <code>Display("The \" is a quote mark.");</code>
** <code>Display("The \" is a quote mark.");</code>


*To use '''line breaks''' in strings:
To use '''line breaks''' in strings:
** <code>Display("The [ is a line break.");</code>
** <code>Display("The [ is a line break.");</code>


*To use the '''[''' symbol in strings:
To use the '''[''' symbol in strings:
** <code>Display("The \[ is a left brace.");</code>
** <code>Display("The \[ is a left brace.");</code>



Revision as of 23:56, 26 March 2010

The following information is based on strazer's tidbits and snippets page.

Assorted

CJ: When crossfading, GetCurrentMusic will always return the newest track (i.e. the one that is fading in). [1]


Using special symbols / characters in string formatting:

To use the % symbol in strings:

    • Display("The %% is the percent symbol.");

To use quote marks in strings:

    • Display("The \" is a quote mark.");

To use line breaks in strings:

    • Display("The [ is a line break.");

To use the [ symbol in strings:

    • Display("The \[ is a left brace.");

Pages in category ‘Tidbits and Snippets’

The following 10 pages are in this category, out of 10 total.