-- Whenever an object is interacted with it's a good idea to either pull on a spring attached to its scale, or to flash it to signal that the interaction went through.
-- This is a combination of both Springs and Flashes put together to create that effect.
-- An instance of this called .hfx is added automatically to every game object.
-- Add a new effect:
-- self.hfx:add('hit')
-- Subsequent arguments are defaults for flashes and springs respectively, so:
-- self.hfx:add('hit', 0.15, 1, 200, 20)
-- Will add a flash with default duration of 0.15 and a spring with parameters 1, 200, 20.
-- Use the effect:
-- self.hfx:use('hit')
-- Subsequent arguments are the same as for the add function. This will call flash on the flash and pull on the spring.
error("Invalid name to be added to the HitFX object. 'add', 'flash', 'init', 'names', 'parent', 'pull', 'trigger', 'update' and 'use' are reserved names, choose another.")