Hello, i’m having trouble using hitTest in a videogame.
I have 2 movieclips on “root”. One is a movieclip containing my character and the other one is a movieclip containing a freeform to check collision with my character.
Everything is working ok, and collision works great. The problem arises when i try to embed ALL my game into another flash movie (to use as a game selector, and embed there several movieclips loading them). Everything works BUT the collision
Here is the code i’m using:
Code:
[LEFT]if (motion_path.hitTest(JohnnyfeetX, JohnnyfeetY, true))
{
Johnny._y-=0.2;
}[/LEFT]
JohnnyfeetX and JohnnyfeetY are x and y coords for the bottom of my character, calculated some lines before.
Anybody knows what happens?