Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: xev on Thu 18/10/2018 06:18:34

Title: SOLVED: Remove Border when using DisplayAt
Post by: xev on Thu 18/10/2018 06:18:34
I am using DisplayAt to draw text to a black area of a room's background.  I will be using this method often so I need someone to teach me how to remove the border.  Prior posts on the forum were not able to help me.

Here is what is being displayed, the white text is fine but the border has to go.
(https://image.ibb.co/hLnEQf/temp2.jpg)

Here are the settings for the TextWindowGUI.
(https://image.ibb.co/hnb2BL/temp1.jpg)

Here is the code that is displaying the text.
Code (ags) Select

function hLook_MouseMove()
{
DisplayAt (175,525,525, "Look");
}


I saw someone say, "assign a blank 1x1 pixel sprite to all border images" but I don't know how (or where) to do this.
Any help would be appreciated.  Thank you for your time.
Title: Re: Remove Border when using DisplayAt
Post by: Cassiebsg on Thu 18/10/2018 06:25:27
Open the textgui, then click the spots where the bluecup is displayed and assign you empty sprite.

Alternatively, you can just go to the sprites manager, and replace the cup sprite with a blank sprite. You'll lose the bluecup sprite, so if you wish to use it in game just give it another number and then assign the empty sprite to that spot (number) where the "original cup" was.

Hope it helps
Title: Re: Remove Border when using DisplayAt
Post by: xev on Thu 18/10/2018 06:33:41
Quote from: Cassiebsg on Thu 18/10/2018 06:25:27
Open the textgui, then click the spots where the bluecup is displayed and assign you empty sprite.
Thank you so much, your suggestion was a very simple fix to my problem.  I assigned the GUI background sprite as a 20x20 transparent .png file and now everything looks great! ;-D