Intranet Catprocess
  1. news...
  2. about Blackvoxel
  3. download
  4. manual
  5. videos
  6. forum
  7. about us & contact
  1. GetY

    Description

    integer GetY()

    Return the voxel y coordinate of the robot position in the world.

    Parameters

    none

    Return Value

    An integer number giving the y coordinate of the robot in the world.

    Example of use

    // Listing #1: Position display demo

    Time <- 0; function Voxel_Step() { local x,y,z; // The robot will play at 5 second interval. if ( (GetGameTime() - Time) > 5000 ) { // Move randomly Move ( GetRnd(3) ); // Get the coordinates of the robot x = GetX(); y = GetY(); z = GetZ(); // Display coordinates on screen Display( "ROBOT IS AT " + x + "," + y + "," + z, 5000, 2); // Store actual timestamp for the next 5 second delay. Time = GetGameTime(); } }

    See Also

    GetX()
    GetZ()

     
  2. Google+