Blood color change in real time

Archive of the old editing forum
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.
Locked
User avatar
Remmirath
Posts: 2561
Joined: Sun Dec 23, 2007 3:53 am
Graphics Processor: nVidia with Vulkan support
Location: My house
Contact:

Blood color change in real time

Post by Remmirath »

Forgive my stupid question, but I'd like to know if there's a way to change a monster's blood color in real time by either using ACS or a DECORATE function.

I have this boss monster that I've coded, divided in 3 phases: each phase makes him change color of the sprites via translations, but I'd like to be able to change his blood color as well, along with the sprites.
Blue Shadow
Posts: 4949
Joined: Sun Nov 14, 2010 12:59 am

Re: Blood color change in real time

Post by Blue Shadow »

User avatar
Remmirath
Posts: 2561
Joined: Sun Dec 23, 2007 3:53 am
Graphics Processor: nVidia with Vulkan support
Location: My house
Contact:

Re: Blood color change in real time

Post by Remmirath »

Oh bummer. Thanks anyway
User avatar
Dark-Assassin
Posts: 742
Joined: Thu Mar 19, 2009 3:40 am
Location: South Australia

Re: Blood color change in real time

Post by Dark-Assassin »

The best you can do is just do a replacement spawn with a modified inherited actor when the criteria is met.
User avatar
Amuscaria
Posts: 6628
Joined: Mon Jul 26, 2004 12:59 pm
Location: Growing from mycelium near you.

Re: Blood color change in real time

Post by Amuscaria »

Instead of changing translations, can't you just make 3 different classes with those translations and have him morph between the classes, with each class having its own blood color, while saving his health in some variable in real-time?
Locked

Return to “Editing (Archive)”