Forcing all frames to be bright

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!)

Forcing all frames to be bright

Postby neoworm » Fri Jan 14, 2022 3:22 pm

I want to make monster that turns invincible and uses the same kind of inverted color translation as player when he picks up the invul sphere. After some time it runs out, it blinks just like player and turns vulnerable and normal. I can change the translation, make it blink, change it's flags to not show bloodsplats etc. no problem.
Problem is the translation looks bad if the monster is not always bright. But I don't know if it's possible to force all it's frames to become temporarilly bright. Any ideas?
User avatar
neoworm
 
Joined: 23 Sep 2005
Location: Czech Republic

Re: Forcing all frames to be bright

Postby Jarewill » Fri Jan 14, 2022 5:28 pm

How about changing the BRIGHT flag on and off using DECORATE's A_ChangeFlag or ZScript's bBRIGHT?
Jarewill
 
 
 
Joined: 21 Jul 2019

Re: Forcing all frames to be bright

Postby neoworm » Sat Jan 15, 2022 3:01 am

Oh, how the hell did I missed that? I remember trying to search for bright on Flags page and getting nothing. Yeah, that solves my problem, thanks.
User avatar
neoworm
 
Joined: 23 Sep 2005
Location: Czech Republic


Return to Scripting

Who is online

Users browsing this forum: No registered users and 1 guest