blur problems

Status
Not open for further replies.
Level 9
Joined
Apr 7, 2010
Messages
480
i already know how to blur a unit.. but, i can't find the right trigger that can remove the blur slowly.. like, 60% then 50%... and so on.. i like them to be.. when my unit moves.. the blur removes slowly. but. every time i move it.. it removes instant.. and another thing.. i don't know how to return the blur after i made my unit stop.. can someone please show me the right trigger? thanks!
 
He obviously misplaced slowly with instantly. Anyway, you need to detect when your unit is moving. If your unit's moving, then, you will need an increasing real variable, e.g. Set Tr = (Tr + 1.00). You will use the variable to make the unit fade in gradually:
  • Set Tr = (Tr + 1.00)
  • Animation - Change (Picked unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with (100.00 - Tr)% transparency
Those two actions must be in the triggers that checks if the unit is moving, so your event will be periodic:
  • Time - Every 0.04 seconds of game-time
To check if a unit is moving, you need to calculate the distance between its previous position and the new position. If the distane is Greater than 0, then, the unit has been moved.
 
Level 9
Joined
Apr 7, 2010
Messages
480
To check if a unit is moving, you need to calculate the distance between its previous position and the new position. If the distane is Greater than 0, then, the unit has been moved.

can you please show me the trigger so i can further understand.. I'm kind of new in making maps. your trigger works. but the blur fades away without my unit moving, can someone explain?.



how can i return the blur after my unit stops? thx! : )
 
Status
Not open for further replies.
Top