i know only the motion tween and i kow how to use it in the flash ( i mean not in the code) and i guess not that i want
because i want to summon (monster) and when he used its spell the spell should follow the enemy
thank you dr.murphy but can you explain more because iam not pro in flash like you so i need more explaining .
thank you again for your replay
no , not this the problem ..
i want object follow and other object until he can catch it
look at this img please
i want this pet to send electric charge to the bat and that charge should follow him if he try to run or something like that
thank you for your replay
Use Math.atan2 to get the angle towards the target and move in that direction.
There are loads of 'mouse follower' tutorials on the web that describe this formula, here's one:
can you give me another way?
Mate, you are not going to get very far if you have that attitude!
My advice would be either bite the bullet and apply your brain, or give up now.
Do some reading and learn how to use the Math API.
I can recommend this book:
In any case, it sounds like the game you are attempting to build is currently way out of your league!
Stop for a month or two while you do some background research...