Scaled Texture Lump offset not working

Ask about ACS, DECORATE, ZScript, or any other scripting questions here!

Moderator: GZDoom Developers

Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. If you still don't understand how to use a feature, then ask here.

Please bear in mind that the people helping you do not automatically know how much you know. You may be asked to upload your project file to look at. Don't be afraid to ask questions about what things mean, but also please be patient with the people trying to help you. (And helpers, please be patient with the person you're trying to help!)
Post Reply
User avatar
Graaicko
Posts: 532
Joined: Tue Jun 17, 2014 11:22 pm
Graphics Processor: nVidia (Legacy GZDoom)

Scaled Texture Lump offset not working

Post by Graaicko »

I'm trying to implement a simple Counter-Strike style scope reticle for a Sniper rifle I made. Its scaled down as it is a large hi-red "texture" technically. It is misaligned and when ever I change the offset numbers in the texture lump it has no effect and stays misaligned, How do I fix this? I've always had a very hard time trying to understand the purpose of texture lumps and through my experiance they just complicate things, but I was told that I need it in order to scale down a HUD weapon sprite.

Screenshot of misaligned reticle
Spoiler:

TEXTURES.txt

sprite "PSGSS0", 1920, 1080 { xscale 4.5 yscale 5 offset 11, 55 Patch "PSGSS0", 0, 0 }
Post Reply

Return to “Scripting”