Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / error: "drawtext" is not a recognised function or command

Author
Message
Olde Worlde Illusions
2
Years of Service
User Offline
Joined: 10th Oct 2021
Location:
Posted: 5th Dec 2021 14:08
I am starting to work on the User Interface, and I'm getting the error message:

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


The line in question is:


Which is correct according to the help documentation. I am using the trial version of AppGameKit if that helps.
PartTimeCoder
AGK Tool Maker
9
Years of Service
User Offline
Joined: 9th Mar 2015
Location: London UK
Posted: 5th Dec 2021 15:17 Edited at: 5th Dec 2021 15:28
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.
Open Source plugins
Cl - DnD Plugin
Buy Me A Coffee
Olde Worlde Illusions
2
Years of Service
User Offline
Joined: 10th Oct 2021
Location:
Posted: 5th Dec 2021 15:39
Quote: "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?
Scraggle
Moderator
20
Years of Service
User Offline
Joined: 10th Jul 2003
Location: Yorkshire
Posted: 5th Dec 2021 15:41 Edited at: 5th Dec 2021 15:43
Remove it.
Use CreateText() and SetTextPosition() instead.
See the Text Help Files for more info

Login to post a reply

Server time is: 2024-04-26 12:35:12
Your offset time is: 2024-04-26 12:35:12