One action to change allignment all sprites?

Discuss, get help with, or post new graphics for TTDPatch and OpenTTD, using the NewGRF system, here. Graphics for plain TTD also acceptable here.

Moderator: Graphics Moderators

Post Reply
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

One action to change allignment all sprites?

Post by Purno »

Is there a simple way to adjust the allignment of all sprites (for example moving them up X pixels) in a GRF, rather than having to change xrel/yrel for every single sprite?
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
michael blunck
Tycoon
Tycoon
Posts: 5954
Joined: 27 Apr 2005 07:09
Contact:

Re: One action to change allignment all sprites?

Post by michael blunck »

You aren´t speaking about the problem to shift sprites up inside the train window? If yes, Y-offset for train sprites will probably help.

regards
Michael
Image
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Re: One action to change allignment all sprites?

Post by Purno »

Nopes, I'm not talking about the depot view/vehicle list. I already got that piece of code in the GRFMaker file. It's for all xrel,yrel values in all directions (in-game). GRFMaker's default values seem to be a bit off, so I got to move up all the sprites by a few pixels.

Thanks for your help so far :))
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
User avatar
AndersI
Tycoon
Tycoon
Posts: 1732
Joined: 19 Apr 2004 20:09
Location: Sweden
Contact:

Re: One action to change allignment all sprites?

Post by AndersI »

Purno wrote:GRFMaker's default values seem to be a bit off, so I got to move up all the sprites by a few pixels.
Are they always off the same amount? If so, it should be easy to produce a new version of GRFMaker with other default values.

Feel free to PM me about ideas for changes in GRFMaker. Nothing much has happened for quite a while, mostly because no-one has given any concrete suggestions what to change.
User avatar
Purno
Tycoon
Tycoon
Posts: 16659
Joined: 30 Mar 2004 12:30
Location: Almere, The Netherlands

Re: One action to change allignment all sprites?

Post by Purno »

AndersI wrote:
Purno wrote:GRFMaker's default values seem to be a bit off, so I got to move up all the sprites by a few pixels.
Are they always off the same amount? If so, it should be easy to produce a new version of GRFMaker with other default values.
It seems like most train sprites could better be placed a few pixels up. Don't know if that's for all directions though. I could investigate a bit more later on. (But changing default values doesn't help for vehicles already alligned to itself (e.g. engines+coaches fit perfectly together now).
Contributor to the The 2cc Set and Dutch Trainset. Inventor of the Metro concept. Retired Graphics Artist.
Image Image
Download TT | Latest TTDPatch | OpenTTD | OpenTTDCoop | BaNaNaS: OpenTTD content system | 2048² OTTD scenario of the Netherlands
GRF Codec | GRF Crawler | GRF Maker | Usefull graphics & tools sites | NML Documentation Wiki | NFO Documentation Wiki
All my graphics are licensed under GPL. "Always remember you're unique, just like everyone else."
Post Reply

Return to “Graphics Development”

Who is online

Users browsing this forum: No registered users and 16 guests