User Guide

1076 Chapter 14: Properties
useTargetFrameRate
Usage
sprite(which3dSprite).useTargetFrameRate
Description
3D sprite property; determines whether the targetFrameRate property of the sprite is enforced.
If the
useTargetFrameRate property is set to TRUE, the polygon count of the models in the sprite
are reduced if necessary to achieve the specified frame rate.
Example
These statements set the targetFrameRate property of sprite 3 to 45 and enforce the frame rate
by setting the
useTargetFrameRate property of the sprite to TRUE:
sprite(3).targetFrameRate = 45
sprite(3).useTargetFrameRate = TRUE
See also
targetFrameRate
vertex
Usage
-- Lingo syntax
memberObjRef.vertex[whichVertexPosition]
// JavaScript syntax
memberObjRef.vertex[whichVertexPosition];
Description
Chunk expression; enables direct access to parts of a vertex list of a vector shape cast member.
Use this chunk expression to avoid parsing different chunks of the vertex list. Its possible to both
test and set values of the vertex list using this type of chunk expression.
Example
The following code shows how to determine the number of vertex points in a member:
-- Lingo syntax
put(member("Archie").vertex.count) -- 2
// JavaScript syntax
put(member("Archie").vertex.count); // 2
To obtain the second vertex for the member, you can use code like this:
-- Lingo syntax
put(member("Archie").vertex[2]) -- point(66.0000, -5.0000)
// JavaScript syntax
put(member("Archie").vertex[2]); // point(66.0000, -5.0000)
You can also set the value in a control handle:
-- Lingo syntax
member("Archie").vertex[2].handle1 = point(-63.0000, -16.0000)