Posted: 5th Dec 2021 14:08
I am starting to work on the User Interface, and I'm getting the error message:

ui.agc:16: error: "drawtext" is not a recognised function or command


The line in question is:
+ Code Snippet
DrawText(5)


Which is correct according to the help documentation. I am using the trial version of AppGameKit if that helps.
Posted: 5th Dec 2021 15:17
Maybe that command was added after the trial version was compiled ..

DrawText, DrawSprite and DrawObject are primarily used with custom rendering systems (ie: not using Sync()), they don't do what you expect, DrawText for example will draw an existing text object onto the backbuffer at its current location, if you are using Sync() you have no need for these functions.
Posted: 5th Dec 2021 15:39
DrawText, DrawSprite and DrawObject are primarily used with custom rendering systems (ie: not using Sync()), they don't do what you expect, DrawText for example will draw an existing text object onto the backbuffer at its current location, if you are using Sync() you have no need for these functions.


So, should I remove that command altogether, or should I do it a different way?
Posted: 5th Dec 2021 15:41
Remove it.
Use CreateText() and SetTextPosition() instead.
See the Text Help Files for more info