Sierra style dialog with background issue - solved!

Started by Dave Gilbert, Mon 31/10/2011 15:22:07

Previous topic - Next topic

Dave Gilbert

Maybe this should be in Beginner Tech, but bare with me.

I'm going back and updating my back catalog with the current version of AGS, and making some small improvements while I'm in there.  One such improvement is to add backgrounds to the dialog text in Blackwell Legacy, since sometimes its hard to read the text against the background.

I've set up the background in the editor like this:



But displayed in the game, it looks like this:



Any help on fixing this is appreciated!  

Thanks,

-Dave

Khris

Just crop the side sprites; in theory they need to be only 1px wide/tall.

The reason why this happens is the sprite isn't stretched but repeated; measuring the pixels of the left side (minus the corner), it's exactly 40 pixels tall, twice the original sprite's height.

Dualnames

you need to shorten the graphics on the left and right border. Even if it's an image 1x2 with black and white for the right and white and black, it will do.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Snarky

The current way it works isn't really satisfactory for any case (other than a single-pixel-length border). It should either stretch the border, repeat it but crop it to the actual side, or fit the window size to the nearest multiple of the length.

I remember cat had a problem with this when she tried to make a fluffy textbox, but I don't remember how, or if, she resolved it.

Dave Gilbert

#4
Well, I took your suggestion and it seems to have worked... sort of.



So... I fix one problem and cause another!  Any ideas on where I go from here?  Thanks again!

Edit:  Nevermind.  I'm not sure what I did, but I started futzing with the images and presto:




SMF spam blocked by CleanTalk