what is locate = to here?

Blitz3D Forums/Blitz3D Beginners Area/what is locate = to here?

i bought a book (game programming for teens) and they use locate a lot , but the program they have there is a different version than blitz basic 2d , so i was wondering what the locate command is here.....

thx

locate sets the cursor to a point on the screen
It's in your help file
type Locate in blitz, highlight it then press f1

And that is the text cursor, the location where print and input will take action, but both of those are somewhat obsolete.

You may find this helps ...
; Locate/Print workaround for Blitz+

Include "LocatePrint.bb"

Graphics 640,480,0,2
SetBuffer BackBuffer()
SetFont LoadFont("courier",24)

Locate 1,1 : Print "Blitz+ Locate/Print workaround"
Locate 10,8 : Print "Uses a standard graphics screen"
Locate 11,9 : Print "Same as Blitz2D / Blitz3D."
Locate 23,12 : Print "Press a key to end .."

Flip
WaitKey
End


The inlcude file
; Locate/Print for Blitz+
Global locateX,locateY

Function Locate(x,y)
	locateX=(x-1)*StringWidth("W") : locateY=(y-1)*FontHeight()
End Function

Function Print(txt$)
	Text locateX,locateY,txt$
End Function


thx guys