Time for action — adding some distortion
We are now ready to add in a small distortion effect to the explosion of our grenades. This will provide a nice visual for players and teach us the basics of using effects.
1. On the
Effects
layer, create aSprite
in the same way we created theGrenadeExplosion
image, and then name itExplosionDistort
and size it to32
by32
.2. In the
Effects
group of the objects properties, click on Add and select the Distort Normal effect to add it to our object, as shown in the following screenshot. The object will now appear invisible, but magnify any objects it overlaps.3. Now add another effect called
Warp
, and have the two set up to match the following screenshot:4. Set both the
GrenadeExplosion
andExplosionDistort
objects to be destroyed on startup, and switch over to the Event Sheet Editor.5. In the
Grenades
event groupAlways
event, add actions to set theHeight
ofExplosionDistort
byExplosionDistort.Height + 24
, and theWidth
toExplosionDistort.Width...