Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Spicy Cacodemon

GZDOOM Glowing Coins (solved)

Recommended Posts

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
}

Screenshot_Doom_20200323_182426.png

Edited by Spicy Cacodemon

Share this post


Link to post

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 }
}

Share this post


Link to post

Maybe the effect is too subtle to notice? Increase the size to something ludicrous like 256 and test again.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×