I have some fist sprites that I want to flip to make right handed, however the actor definition uses offsets to smooth it. I know I will have to change the offset values as well due to flipping but I'm not sure where to start.
Is there some sort fancy math I can do to work this out?
Flipping sprites and the offset property
Forum rules
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
Before asking on how to use a ZDoom feature, read the ZDoom wiki first. This forum is archived - please use this set of forums to ask new questions.
- Professor Pants
- Posts: 30
- Joined: Fri Jan 20, 2012 3:43 pm
- Contact:
Re: Flipping sprites and the offset property
I made a wad using TEXTURES which flips the original Doom pistol and fist on the Y axis. It might work right away. If not, adjust accordingly. (Not sure how the DECORATE offset works, only used it once.)
righthanded.wad
Also, here's the code:
righthanded.wad
Also, here's the code:
Spoiler: CodeOh, and here's a screenshot:
Spoiler: ScreenshotAlso, if you need to change the code at all, here's where I got all those numbers:
Spoiler: Formula
Re: Flipping sprites and the offset property
I'm not sure how offset (decorate) affects offset (textures). I think it only modifies the position based on the offset set by textures. If so, you will probably only need to modify the x values in decorate. The number to add depends on how large the sprites are. I don't know of any easy way to figure it out so you might have to experiment.

