Demon
Register | User Profile | Member List | F.A.Q | Privacy Policy | New Blog | Search Forums | Forums Home
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > How to make things fade out in ACS?
 
Author
All times are GMT. The time now is 17:28. Post New Thread    Post A Reply
jdagenet
Junior Member


Posts: 168
Registered: 07-11


How would I make things such as monsters, weapons, ammo, etc fade out slowly? I know how to fade them in using this script:

code:
script 999 (int thingID, int thingSpawn, int newTID) { if(thingSpawn > 0) { Thing_SpawnFacing(thingID,thingSpawn,1,thingID); } int a = 0.1; int b = 0; ThingSound(thingID,"monster_spawn",127); Thing_Activate(thingID); SetActorProperty(thingID,APROP_RenderStyle,STYLE_Translucent); for(b = 1; b < 10; b++) { SetActorProperty(thingID,APROP_Alpha, a); a += 0.1; delay(2); } SetActorProperty(thingID,APROP_Alpha, 1.0); if(newTID > 0) { Thing_ChangeTID(thingID,newTID); } }


But how would I reverse it and make the monster fade out and be removed from the map? Thank you for any help.

Old Post 01-27-12 00:40 #
jdagenet is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
ReX
Senior Member


Posts: 1648
Registered: 05-00


I'm not sure, but you can try this:

code:
{ SetActorProperty(thingID,APROP_Alpha, a); a -= 0.1; delay(2); } Thing_Remove(thingID);

Old Post 01-27-12 13:05 #
ReX is offline Profile || Blog || PM || Email || Homepage || Search || Add Buddy IP || Edit/Delete || Quote
jdagenet
Junior Member


Posts: 168
Registered: 07-11


No, this instantly just removes the thing, or atleast the way I'm using it but thanks.

Old Post 01-27-12 23:24 #
jdagenet is online now Profile || Blog || PM || Email || Search || Add Buddy IP || Edit/Delete || Quote
All times are GMT. The time now is 17:28. Post New Thread    Post A Reply
 
Doomworld Forums : Powered by vBulletin version 2.2.5 Doomworld Forums > Classic Doom > Doom Editing > How to make things fade out in ACS?

Show Printable Version | Email this Page | Subscribe to this Thread

 

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are OFF
[IMG] code is ON
 

< Contact Us - Doomworld >

Powered by: vBulletin Version 2.2.5
Copyright ©2000, 2001, Jelsoft Enterprises Limited.

Forums Directory