673 posts Sunny Singapore, the lil' red dot joined 2004-07-02
#1 2005-10-01
moving in circles just a question out of curiosity. how do you make effects circle around a unit? e.g. a wisp moving in circles of a hero.
604 posts Indonesia joined 2004-12-29
#2 2005-10-01
Create dummy unit with wisp model. Then, every 0.03 second move the dummy instantly to position of buffed unit offset by 100 at x degree. x initialized with 0 and incremented with 5.
673 posts Sunny Singapore, the lil' red dot joined 2004-07-02
#3 2005-10-01
cool
but i will need to use a variable to store the position of the dummy right?
604 posts Indonesia joined 2004-12-29
#4 2005-10-02
Nope, don't store the position, but store the x(angle) value. Each period set x with x + <something>.
673 posts Sunny Singapore, the lil' red dot joined 2004-07-02
#5 2005-10-02
oh i see
i never thought of it that way