Hey,
In this topic I am going to teach you how to make a mouse controled object like how Virtual Worlds control there characters.
First make a character or a object. The highlight the character, and press F8 and name it and make it a movieclip. Then highlight it again and press F9 and Action Script should pop up. Copy and paste this code below.
onClipEvent (load) {
_x = 239.1;
_y = 184.9;
speed = 2;
}
onClipEvent (mouseDown) {
endX = _root._xmouse;
endY = _root._ymouse;
}
onClipEvent (enterFrame) {
_x += (endX-_x)/speed;
_y += (endY-_y)/speed;
}
There are a few bugs with this one but I will fix it. Press Ctrl and Enter to test the moive and it should start working. post on this topic if you have any questions.
Thanks,
DDWOLFER