Spicy Cacodemon Posted March 23, 2020 (edited) I've created some custom spinning coins that act like healthbonuses but they don't glow in GZDOOM like other default items do. I assume the glow effect is from GLDEFS. Is there an easy way to make my coins glow like the megasphere in the image below? The script for my coin is ACTOR Coin : Health 9602 { +INVENTORY.ALWAYSPICKUP SpawnID 23 States { Spawn: COIN ABCDEFGH 8 Bright Loop } Inventory.Amount 1 Inventory.MaxAmount 200 } Edited March 23, 2020 by Spicy Cacodemon 0 Share this post Link to post
Nevander Posted March 23, 2020 (edited) You'll need to define and attach a light to them in GLDEFS. Here's a quick example, may need tweaking of color or size: pointlight COIN { color 1.0 1.0 0.0 size 16 } object Coin { frame COIN { light COIN } } 0 Share this post Link to post
Spicy Cacodemon Posted March 23, 2020 Tried messing around with the script but it's not working. This is my first time using the GLDEF lump. Somehow I'm not doing it right. 0 Share this post Link to post
Gez Posted March 23, 2020 Maybe the effect is too subtle to notice? Increase the size to something ludicrous like 256 and test again. 0 Share this post Link to post
Spicy Cacodemon Posted March 23, 2020 Works on my static Doomguy decorate but not on the animated coins. The coins has 8 frames COINA0, COINB0, COINC0 etc etc. I can see an example on the wiki but can't figure it out. https://zdoom.org/wiki/GLDEFS 0 Share this post Link to post
Jewellds Posted March 23, 2020 (edited) Zdoom already has a coin called "coin" , so you've got a name conflict. Name your Decorate actor something unique (like goldcoin, coin1 or something) and use that name in gldefs and it should work. 0 Share this post Link to post
Spicy Cacodemon Posted March 23, 2020 Thanks it worked. I don't have a Golden Souls style custom coin counter right now so I might ask about that some other time. 1 Share this post Link to post