• Register
Post news Report RSS Accelerating / Recovering energy

Build the script that attaches to the characters to accelerate the speed of the enemy towards the base

Posted by on

Background

Build the script that attaches to the characters to accelerate the speed of the enemy towards the base.

Accelerating

The script is virtually self-sufficient, he attaches to the enemy (game object) and performs the increment operations of speed (by default at 50 percent) for a period of time (in seconds) that I define according to criteria that can vary freely.

Recovering energy

The healing process is also running, the character Demonita has the power to recover the energy of enemies in a specific range. I'm still going to add effects on the ground (as with the Arpixa to summon bats) to be demonstrated the connection between the healer and the enemy healed (which received the energy).

Here is an example of how the process is working

Note that the bat was just hit by a tower and lost 15 of energy, but the Demonita cure all his energy.

Post a comment
Sign in or join with:

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.

News
Browse
News
New
Post news
Report
Report
Views
85 (1 today)
Share
Related Games
School of Witches
School of Witches Tower Defense
Related Engines
Unity
Unity Commercial