I have a movie clip that follows the mouse…
Its not done yet but its gonna be a dog chasing a/the mouse…
I want to have it where the if the mouse is left or right of the following movie clip it shows it walking toward the mouse… so something like
if mouse positions is less the the cursor + 10 (pixels) goto and play frame with dog walking left
and one for right
up
down
(I want this to walk till its directly under or over mouse and then laydown or jump only when over or under mouse… IS THAT POSSIBLE?? )
(say its a 20 pixel wide object and 10 on each side will cover the whole thing and not just the exact center pixel, thats what the 10 + movie clip position is for, but Is there a way to tell it to goto and play whatever_frame when mouse is left of any graphic on the sitting dog section???
like the equivalent of onRollLeft or whatever.)
this is the code i have…
its the top statement that doesn’t work the bottom 2 do…
if (_xmouse < detail.x+10) {detail.gotoAndPlay(61);
}
detail.onRollOver = function() {
detail.gotoAndPlay(31);
}
detail.onRollOut =function(){
detail.gotoAndPlay(1);
}
if i cover all directions i shouldn’t need the last one- onRollOut.
I dont have all the animations made so if you know how to do this just do it with a shape like i did in frame 61 of the instance “detail” of the movieclip “dog”
really what im asking for if you havent figured it out by now is to help me with the actionscript that will do what i did with the rollover and rollout, but put
1 (a shape of a different color in a frame in the clip dog) when mouse is any left of dog
2 (a shape of a different color in a frame in the clip dog) a shape of a different color when mouse is any right of dog
3 (a shape of a different color in a frame in the clip dog) a shape of a different color when mouse is directly under dog
4 (a shape of a different color in a frame in the clip dog) a shape of a different color when mouse is directly above dog
I already created the shapes and placed them in the appropriate frames…
you should only need to mess with the actions on the instance “detail” (the dog face in frame 1 of scene 1 in layer “follower”
my fla is to big to upload to this form so im placing it on my website
here