Usage

Syntax: vecy(int direction);
Returns the vector direction. Returns 0 when given 1 or 3.

Note: direction ranges from 0 to 3

Explanation

vecx gives you a direction vector based on the up or down direction. (Vertical directions).
(Combined with vecx it can give you a 2 dimension vector, <x,y>)

Example

function onCreated() {
  temp.array = {vecy(0), vecy(1), vecy(2), vecy(3)};
}

... Will set temp.array to {-1, 0, 1, 0}

Categories

CategoryFunctionClientside
CategoryFunctionServerside

There are no comments on this page. [Add comment]

Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki