goto: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Initial write-up.)
 
No edit summary
Line 17: Line 17:
* {{code|x}} - The X coordinate of the grid cell to center the map to.
* {{code|x}} - The X coordinate of the grid cell to center the map to.
* {{code|y}} - The Y coordinate of the grid cell to center the map to.
* {{code|y}} - The Y coordinate of the grid cell to center the map to.
|also=
{{func|moveToken}},
{{func|getTokenY}},
{{func|getZoom}},
{{func|setZoom}}.


}}
}}
[[Category:Miscellaneous Function]]
[[Category:Miscellaneous Function]]

Revision as of 08:30, 30 April 2015

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

goto() Function

Introduced in version 1.3b51
Centers the map on a token, or on a specified grid cell.

Usage

goto(token)
goto(x, y)

Parameters

  • token - The id of the token to center the map to.
  • x - The X coordinate of the grid cell to center the map to.
  • y - The Y coordinate of the grid cell to center the map to.


See Also