After doing some test and errors, I finally able to hitTestObject when using YiWei method by using another array to store the collision object. I also able to add enemy into the stage with basic AI and make character pop forward when hit by enemy.
But, there is another new problem, I unable to make character become invincible for certain period of time after hit by enemy.
It's so tiring...when you have solved a problem, a new problem pop out, like never ending loops...
No comments:
Post a Comment