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 camera's 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 camera's rect.
If the position specified is out of view of the camera, this command returns
Parameters
Required. Specifies the world-relative position that would appear.
vector
Example
This statement shows that the world origin, specified by vector (0, 0, 0), appears at point
(250,281) within the camera's 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,
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
Parameters
Required. Specifies the ASCII character to write to the file.
stringChar
See also
Fileio
rect (camera)
before using
openFile()
.
void
to write a character.
writeChar()
writeChar()
591
Need help?
Do you have a question about the DIRECTOR MX 2004-DIRECTOR SCRIPTING and is the answer not in the manual?
Questions and answers