PDA

View Full Version : hitTest with multiple layers help!!


Ciber
09-19-2006, 06:19 PM
Grr finaly 1 more step till it's complete. Okay, Heres how I have it set up and need it to be this way because my guy does not move, my senery does so the guy stays in the middle...

_root > Movie Clip, Instance Name: land > Movie Clip, Instance Name: 1

Heres what i have:

if (_root.man.hitTest(_root.land)) {DOWNmoveSpeed=0

}

else {DOWNmoveSpeed=5

}

It works with land, but i need it to work with movie clip instance name: 1 IN movie clip instance name: land

Please help.
Thanks.

Mark Aged
09-20-2006, 09:15 AM
Change the root to parent. That should make it work.

My NEW 1000th post.

Ciber
09-20-2006, 12:43 PM
Let me try... hope it works. If not, we should get it by the time you reach 2000 posts ;)