A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Follow curser from a different angle

  1. #1
    Junior Member
    Join Date
    Jun 2007
    Posts
    14

    Follow curser from a different angle

    I made an object follow the curser, but it follows the curser in the bottom right corner.. I want the object to follow the curser from the left top corner, how do I do that?

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    open the movieclip containing the object and place the object at 0,0
    add code on the main timeline -
    Code:
    this.onMouseMove = function(){
    mc._x = _xmouse;
    mc._y = _ymouse;
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center