Locate

Blitz3D Forums/Blitz3D Beginners Area/Locate

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Locate has been removed from BlitzPlus.
I use this code to replicate the old Blit2D Locate/Print commands. You need to set up a graphics display before using the functions.

include this code at the beginning of your program:
; 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