Forum: Animation


Subject: Flash advanced user : Please Help Me !!!!!!!!!!!!!!!!!

remc opened this issue on Sep 04, 2002 ยท 2 posts


remc posted Wed, 04 September 2002 at 8:00 AM

Attached Link: http://www.thirdeyefunction.fr.st

Hi everybody ! Well, i have another problem for you ! I will be glad if u can help... **Ok let's start:** The player is on a 3d isometric plan (like a big room). The player move his character by clicking on the floor ( Until now i can do that, it's ok...). Here is the code i use : ________________________________ onClipEvent (load) { _x = 0; _y = 0; speed = 2; } onClipEvent (mouseDown) { targetx = _root._xmouse; targety = _root._ymouse; } onClipEvent (enterFrame) { _x += (targetx-_x)/speed; _y += (targety-_y)/speed; } ________________________________ But now, there are : a table, a trash can etc... And the player "walk" on them !!!!!! I just want taht when the "player" touch the table, he stop... Is there a way to tell the "character movie clip" to not go on the "table movie clip"? REMC http://www.thirdeyefunction.fr.st