Intranet Catprocess
  1. news...
  2. about Blackvoxel
  3. download
  4. manual
  5. videos
  6. about us
  1. GetX

    Description

    integer GetX()

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

    Parameters

    none

    Return Value

    An integer number giving the x 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

    GetY()
    GetZ()

     
  2. Google+