Warping sprites
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.
Warping sprites
Is it possible to warp a sprite like a floor or texture with animdefs? If it is, how I do it? 
- Ryan Cordell
- Posts: 4349
- Joined: Sun Feb 06, 2005 6:39 am
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Capital of Explodistan
Re: Warping sprites
It's possible.
The sprites have to follow the same restrictions as everything else though. Has to be 16x16, 32x32, 64x64, 128x128, 256x256, 512x512, etc.
And I think they should be as centered within the graphic itself as possible, otherwise the warping might make the sprite 'leak' (it's easier to observe it happening).
The sprites have to follow the same restrictions as everything else though. Has to be 16x16, 32x32, 64x64, 128x128, 256x256, 512x512, etc.
And I think they should be as centered within the graphic itself as possible, otherwise the warping might make the sprite 'leak' (it's easier to observe it happening).
Re: Warping sprites
Thank you. But what I should write to the animdefs?Ryan Cordell wrote:It's possible.
The sprites have to follow the same restrictions as everything else though. Has to be 16x16, 32x32, 64x64, 128x128, 256x256, 512x512, etc.
And I think they should be as centered within the graphic itself as possible, otherwise the warping might make the sprite 'leak' (it's easier to observe it happening).
- Ryan Cordell
- Posts: 4349
- Joined: Sun Feb 06, 2005 6:39 am
- Preferred Pronouns: No Preference
- Operating System Version (Optional): Windows 10
- Graphics Processor: nVidia (Modern GZDoom)
- Location: Capital of Explodistan
Re: Warping sprites
Try using the sprite name (SPRAA0 for example)?
-
CaptainToenail
- Posts: 3975
- Joined: Fri Jul 06, 2007 9:16 am
Re: Warping sprites
Yeah, I added this effect to HPack's ghost enemy. Looks great as long as the monster doesn't change frames often IMO.