User Guide

writeChar() 591
worldSpaceToSpriteSpace
Usage
-- Lingo syntax
member(whichCastmember).camera(whichCamera).worldSpaceToSpriteSpace(vector)
// JavaScript syntax
member(whichCastmember).camera(whichCamera).worldSpaceToSpriteSpace(vector);
Description
3D command; returns the point within the cameras rect at which a specified world-relative
position would appear. The position returned by this command is relative to the upper left corner
of the cameras rect.
If the position specified is out of view of the camera, this command returns
void.
Parameters
vector
Required. Specifies the world-relative position that would appear.
Example
This statement shows that the world origin, specified by vector (0, 0, 0), appears at point
(250,281) within the cameras rect:
-- Lingo syntax
put sprite(5).camera.worldSpaceToSpriteSpace(vector(0, 0, 0))
-- point(250, 281)
// JavaScript syntax
put(sprite(5).camera.worldSpaceToSpriteSpace(vector(0,0,0)));
See also
spriteSpaceToWorldSpace, rect (camera)
writeChar()
Usage
-- Lingo syntax
fileioObjRef.writeChar(stringChar)
// JavaScript syntax
fileioObjRef.writeChar(stringChar)
Description
Fileio method; Writes a single specified ASCII character to a file.
You must first open a file by calling
openFile() before using writeChar() to write a character.
Parameters
stringChar Required. Specifies the ASCII character to write to the file.
See also
Fileio