Time for action — explosion flashes
We have a grenade that explodes, but produces no flash. So let's add this in now.
1. In the Layout Editor view, create a layer called
Effects
and place it just behind theHUD
layer.2. Add a
Sprite
with the nameGrenadeExplosion
and a more solid circle version of theLight
object image (a quick way of doing this is to paste the sprite in multiple times; each time decreases the opacity).3. Set the hotspot of the
Sprite
to its mid-point (numpad 5).4. Set the
Opacity
value to40%
andFilter
toWebYellow
, then give it theTimer
behavior. The object should now look similar to the image in the following screenshot:5. Switch over to the Event Sheet Editor view. In the event where the
Grenade
object explodes, add an action at the top of the list to spawn theGrenadeExplosion
at the position of theGrenade
object on the"Effects
" layer.6. Add an action to start the
Timer
behavior of theGrenadeExplosion
object with the name"FlashTimeout
" of length100
andDestroy...