Product Chat / [SOLVED] Titles Not Displaying Correctly

Author
Message
jjumisko
4
Years of Service
User Offline
Joined: 11th Dec 2019
Location: Los Angeles
Posted: 20th Jan 2020 00:14
My titles are not displaying correctly, despite my spending hours in Photoshop resizing the images for each resolution.
My monitor is set at 1920x1080, one of the exact display sizes in the titlesbank.



Any thoughts? My game is nearly ready for Beta, except for this embarrassing glitch. BTW, I have no problem with the title going behind the menu buttons. I completely rebooted my computer and ran a fresh instance of GG, opened the level, and compiled the code, just to make sure there weren't any remnants of earlier adjustments.
Acer Nitro 5
2.4 GHz Core i5
GeForce GTX1050
32Mb SDRAM

The author of this post has marked a post as an answer.

Go to answer

Attachments

Login to view attachments
PM
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 20th Jan 2020 05:55 Edited at: 20th Jan 2020 06:00
@jjumisko hey there

Just a thought:
There is code in the stock scripts that kind of grows and shrinks the backdrop image - have you commented that out?
It is located at the end of the _main section
If not, it doesn't really work to well if text is part of the image.

OldFlak....
aka Reliquia
i7-4790 @ 3.2GHz. 8GB Ram. NVidia GeForce GTX 1060 6GB. M1: Acer 31.5" @1920x1080 M2: Samsung 31.5" @ 1920 x 1080. M3: Acer 24" @ 1920 x 1080. OS: Windows 10 Pro 64-bit Insider.
PM
granada
Forum Support
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: United Kingdom
Posted: 20th Jan 2020 17:55 Edited at: 20th Jan 2020 17:56
Is your monitor scale set at 100 in settings

Dave
Windows 10 Pro 64 bit
GeForce RTX™ 2070 GAMING OC 8G
AMD FX (tm)-9590 Eight-core Processor
31.96 GB RAM
3840 x 2160 ,60 Hz
PM
jjumisko
4
Years of Service
User Offline
Joined: 11th Dec 2019
Location: Los Angeles
Posted: 20th Jan 2020 22:06 Edited at: 20th Jan 2020 22:35
Quote: "There is code in the stock scripts that kind of grows and shrinks the backdrop image - have you commented that out?
It is located at the end of the _main section "


I checked the resolutions.lua and all of the listed resolutions are there. I also checked titles.lua as a sample of the scripts in the titlesbank nested folder where the images reside. I'm not sure I know what you mean by "commented that out".

Edit: Also, monitor was set to 100%.
Acer Nitro 5
2.4 GHz Core i5
GeForce GTX1050
32Mb SDRAM
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 21st Jan 2020 01:14
This post has been marked by the post author as the answer.
Pretty sure as a start point I had to Rem out the backdrop moving in the title.lua .. I don't think I did much else

The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
OldFlak
GameGuru TGC Backer
9
Years of Service
User Offline
Joined: 27th Jan 2015
Location: Tasmania Australia
Posted: 21st Jan 2020 05:55 Edited at: 21st Jan 2020 06:02
Quote: " I'm not sure I know what you mean by "commented that out"."

The code I mentioned moves the backdrop (image) in an attempt to make the experience more interesting for the player.
So although you have correct image sizes, if that code is running the image will get bigger and move around a tad, so text that almost covers the width of the backdrop like yours does will be off screen a tad.

I am pretty sure that this is what you issue is

Try commenting it out and see if it fixes your issue. So put -- in front of the code to comment it out.

See syncromesh's post above....

Personally I don't like the effect at all, and have completely removed it from my start screens... but commenting it out has the same affect.



OldFlak....
aka Reliquia
i7-4790 @ 3.2GHz. 8GB Ram. NVidia GeForce GTX 1060 6GB. M1: Acer 31.5" @1920x1080 M2: Samsung 31.5" @ 1920 x 1080. M3: Acer 24" @ 1920 x 1080. OS: Windows 10 Pro 64-bit Insider.
PM
synchromesh
Forum Support
10
Years of Service
User Offline
Joined: 24th Jan 2014
Location:
Posted: 21st Jan 2020 10:30
Quote: "I'm not sure I know what you mean by "commented that out".
"

Just to be clear commenting the line out ( so its ignored ) is simply adding the -- to the front of the line.
-- move backdrop … This is already commented out as its just telling you what this section of code does.
The only person ever to get all his work done by "Friday" was Robinson Crusoe..
PM
jjumisko
4
Years of Service
User Offline
Joined: 11th Dec 2019
Location: Los Angeles
Posted: 21st Jan 2020 23:46 Edited at: 22nd Jan 2020 00:28
Thank you both. I will try that. Learned something new and very useful. I'm just beginning the Lua book, so it could take a bit of time for this old dog!

Hey, thanks. That fixed it, but I was a little too expansive in my titles design, so some of the text doesn't quite fit. Now I know that I need to leave quite a buffer around the edges of my graphics. At least they were centered. I'll have to go back to Photoshop to get the type set so that credits can be read. Very cool of you guys to be so patient with a noob.
Acer Nitro 5
2.4 GHz Core i5
GeForce GTX1050
32Mb SDRAM
PM

Login to post a reply

Server time is: 2024-11-23 20:02:41
Your offset time is: 2024-11-23 20:02:41