Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Variables
Romulator Offline
Not Tech Support ;-)

Posts: 3,628
Threads: 63
Joined: Jan 2013
Reputation: 195
#5
RE: Variables

Quote:"9000" is also a string (I assume).

9000 is a string by itself if declared that way (as a String, not an Integer). A String itself is simply a collection of chars (characters). A char is a single unicode character, and there are over 107,000 of them.

Typically, anything you declare can be declared as a string, but String variables are often used for later referencing in code rather than use in-game. For example, in Justine, a String variable keeps track of which suitor and prisoner is currently in the level and plays the corresponding sound. I would search for the code, but I cannot be bothered Tongue The syntax and code example can be found searching for StartCharacterSpeak

Discord: Romulator#0001
[Image: 3f6f01a904.png]
09-15-2014, 08:16 AM
Find


Messages In This Thread
Variables - by FlawlessHappiness - 09-14-2014, 10:25 PM
RE: Variables - by Mudbill - 09-15-2014, 12:17 AM
RE: Variables - by FlawlessHappiness - 09-15-2014, 12:25 AM
RE: Variables - by Mudbill - 09-15-2014, 07:32 AM
RE: Variables - by Romulator - 09-15-2014, 08:16 AM
RE: Variables - by FlawlessHappiness - 09-15-2014, 11:46 AM
RE: Variables - by Romulator - 09-15-2014, 12:21 PM
RE: Variables - by FlawlessHappiness - 09-15-2014, 12:47 PM



Users browsing this thread: 1 Guest(s)