Can't manage to change that thing when we interact with hotspots

Started by TIMEntertainment, Wed 15/07/2015 08:52:31

Previous topic - Next topic

TIMEntertainment

First of all, i really don't know they're name xD so yeah
how to change this

And one more question
I read the custom proprety in the tutorial and tried to do it but it don't work anyone have a specific explenation/ example script so i can understand from?

Khris

Are you talking about the mouse cursors? The image of a hand?

Regarding Custom properties, "don't work" is not a useful problem description.

TIMEntertainment

(Mod Edit: Two versions of this post combined into one.)

Khris i mean whne we set the hotspot and give it the event and do the display and stuff in the script it display this

it sright in the middle of the room and the font is not the one i want it to be.
So my question is : How we can change the location and font?
Sorry if this question is already asked.


For the custom proprety i figured it out. :)

---------------

Quote from: Khris on Wed 15/07/2015 09:24:40
Are you talking about the mouse cursors? The image of a hand?

Regarding Custom properties, "don't work" is not a useful problem description.
Khris i mean when u set up the hotspots event script etc.
and test the game a the words that display stays in the middle of the room and the font is bad :/ and it have a shitty background
like this
anyway, my question is : How i can change it position and the font and the background.



for the custom proprety i figured it out myself :)

Khris

So you used the Display() command and got the standard white box and default font, and you want to change it?

Import the font you want to use, then activate it by adding
Code: ags
  Game.NormalFont = eFont[AwesomeFont];
inside GlobalScript / game_start().
Then you have to create a custom TextWindow GUI, tell AGS to use it in General settings -> Text output, then use DisplayAt() instead.

How to import a new font: Help file -> Tutorial -> Setting up the game -> Fonts (click)
How to create a custom GUI: Help file -> Other Features -> Editing the GUIs -> Customized Text Window (click)
How to use DisplayAt(): Help file -> Scripting -> Text display / Speech functions -> DisplayAt (click)

SMF spam blocked by CleanTalk