This is a tower defense style game in which you control a witch with powers to exchange trees by powerful turrets to defend your school in each phase. The game is initially planned to have 15 levels

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

Your comment will be anonymous unless you join the community. Or sign in with your social account: