ig.

AbilityGlow

new AbilityGlow()

Ability to glow with light passively, i.e. always on. IMPORTANT: always use abilities by calling the ig.Ability#activate method, and if the ability ig.Ability#requiresTarget make sure it ig.Ability#canFindTarget or you supply one via ig.Ability#setEntityTarget or ig.Ability#setEntityTargetFirst!

Author:
  • Collin Hover - collinhover.com
Source:

activateToggle

Default Value:
  • true
Source:

alpha :Number

Light alpha value from 0 to 1.

Default Value:
  • 0.25
Source:

b :Number

Light blue value from 0 to 1.

Default Value:
  • 1
Source:

fadeInDuration :Number

Duration of fade in when activated.

Default Value:
  • 125
Source:

fadeOutDuration :Number

Duration of fade out when deactivated.

Default Value:
  • 125
Source:

g :Number

Light green value from 0 to 1.

Default Value:
  • 1
Source:

once

Default Value:
  • true
Source:

r :Number

Light red value from 0 to 1.

Default Value:
  • 1
Source:

sizeMod :Number

Multiplier on ability user size to affect size of glow.

Default Value:
  • 5
Source:

activateComplete()

Creates light as needed, sets it to auto follow ability users, and fades light in.

Source:

clone()

Source:

deactivateComplete()

Fades light out and destroys it.

Source:

initTypes()

Initializes glow types.
- adds ig.Ability.TYPE.PASSIVE to {@link ig.Ability#type}

Source:

initUpgrades()

Adds simple size increasing upgrades.

Source:

showLight()

Shows light after it is added to game.

Source: