Making animated textures
This is a short workflow for adding an animated texture to Bloodlines. The GameBanana animated texture tutorial covers creating an animated .vtf for Source. The steps below describe how to bring that texture into Bloodlines.
- Create an animated
.vtfusing the GameBanana tutorial. - Run the
.vtfthrough the Texture Converter in the Bloodlines SDK to make the Bloodlines texture files (.tthand.ttz). Put the converted files where the material expects its texture. -
Open the existing
death.vmtand add anAnimatedTextureproxy inside its material block. Keep the material’s other settings. For a material whose base texture should animate, the proxy can look like this:"Proxies" { "AnimatedTexture" { "animatedTextureVar" "$basetexture" "animatedTextureFrameNumVar" "$frame" "animatedTextureFrameRate" "24" } } - Adjust the frame rate to suit the animation, then launch the game and check the result.
If death.vmt already has a Proxies block, add AnimatedTexture inside that block instead of creating a second one. The material’s $basetexture must point to the converted texture. See the Valve Developer Community’s material proxies reference for more on the proxy format.