QuestionSolvedAS3 Enemy Magnet

Posts 1–5 of 5 · Page 1 of 1
AS3 Enemy Magnet
I got an Enemy Magnet AS3. (Thanks JamesRo :) ) But, what I want is to automatically Magnet the enemy if selected, not click-to-Magnet. Anyone knows?
 
Enemy Magnet
if (Game.world.myAvatar.target)
{
Game.world.myAvatar.target.pMC.x = Game.world.myAvatar.pMC.x;
Game.world.myAvatar.target.pMC.y = Game.world.myAvatar.pMC.y;
}
Quote Originally Posted by FiveCCC View Post
what I want is to automatically Magnet the enemy if selected, not click-to-Magnet.
i dont understand
You can use it with a timer of 1ms?
Solved, thank you.
Quote Originally Posted by FiveCCC View Post
Solved, thank you.
Solved.
/Closed
Posts 1–5 of 5 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?