[↑]
LOCATE
- Specify the character display coordinates to the text screen
LOCATE [CoordinateX],[CoordinateY]
LOCATE ScreenID,[CoordinateX],[CoordinateY]
- Get character display coordinates
LOCATE [ScreenID] OUT CoordinateX,CoordinateY
1. Specify the character display coordinates to the text screen
LOCATE [CoordinateX],[CoordinateY]
LOCATE ScreenID,[CoordinateX],[CoordinateY]
・When this command is executed, the display coordinates of characters to be displayed in PRINT, TPRINT, INPUT, etc. will change.
Arguments
ScreenID
Text screen ID to specify display coordinates: 0 to 4
・4 is the default.
CoordinateX,CoordinateY
・Specify the coordinates to display characters.
・The number of characters that can be displayed depends on the screen size set in TSCREEN.
*If X or Y is not specified, the previous X and Y coordinates are maintained.
Example
LOCATE 20,15
LOCATE ,10
LOCATE 1,10,0
2. Get character display coordinates
LOCATE [ScreenID] OUT CoordinateX,CoordinateY
・Get the current character display coordinates.
Argument
ScreenID
Text screen ID to specify display coordinates: 0 to 4
・4 is the default.
Return Value
CoordinateX,CoordinateY
・Get the current character display coordinates.
Example
LOCATE OUT X,Y
LOCATE 1 OUT X1,Y1
About this site
Our site is an unofficial manual site of programming software "SmileBASIC" for NintendoSwitch™.
I acquire the content of the site from the
official reference site
of the
SmileBoom Co.Ltd.
that is the development and sales cause of the software in real time (a minimum period of 24 hours update) and display it.
For automatic update, contents may become improper.
Please confirm the correct content in an official site.
June 3, 2020
by mim
OK
|