A Flash Developer Resource Site

Results 1 to 7 of 7

Thread: move in style

  1. #1
    twisted eye
    Join Date
    Dec 2001
    Location
    london, england
    Posts
    134

    move in style

    hi everyone

    I have a function which moves MC's and this works great.

    script:

    function moveMe(targMove, xMove, yMove, speedMove, andThen1) {
    targMove.onEnterFrame = function() {
    var goChoice = andThen;
    var dxMove = xMove-targMove._x;
    vxMove = (vxMove+dxMove)/speedMove;
    targMove._x += vxMove;
    if (Math.round(dxMove) == 0 && Math.round(vxMove) == 0) {
    var dyMove = yMove-targMove._y;
    vyMove = (vyMove+dyMove)/speedMove;
    targMove._y += vyMove;
    if (Math.round(dyMove) == 0 && Math.round(vyMove) == 0) {
    goChoice.play();
    delete targMove.onEnterFrame;
    }
    }
    };
    }

    does anyone know how I could adapt this so rather than moving straight, vertically or horizontally, it could fly in with a bend...as if the mc was on a circular motion guide.

    Any thoughts or handy tutorials

    cheers
    everything takes time, of which i have none.

  2. #2
    twisted eye
    Join Date
    Dec 2001
    Location
    london, england
    Posts
    134
    anyone???
    everything takes time, of which i have none.

  3. #3
    Senior Member
    Join Date
    Feb 2001
    Location
    On the fifth floor.
    Posts
    1,202
    Show me the usage of this function and tell me what exactly you want, may be I'll help.

  4. #4
    twisted eye
    Join Date
    Dec 2001
    Location
    london, england
    Posts
    134
    hello sergwiz

    I dont understand what you mean by usage but basically the function moves an mc from its current _x coords to the new specified _x coords and then does exactly the same with the _y coords. so basically it moves the mc across horizontally and the vertically which is very straight and precise.

    What I want to be able to do is move the mc across the stage but rather than it moving straight i would like it to say bend...so as it moves across it also gradually descends and then at its mid-point _x it then ascends (excuse spelling) back to its original _y...as if its moving in a circular movement.

    Sorry if this is confusing...im confusing myself.
    everything takes time, of which i have none.

  5. #5
    Senior Member
    Join Date
    Feb 2001
    Location
    On the fifth floor.
    Posts
    1,202
    OK, I will try to make it

  6. #6
    twisted eye
    Join Date
    Dec 2001
    Location
    london, england
    Posts
    134
    hello mate

    I have sent you an email regarding the above

    cheers
    everything takes time, of which i have none.

  7. #7
    Senior Member
    Join Date
    Feb 2001
    Location
    On the fifth floor.
    Posts
    1,202
    Hi Jason
    I've sent the letter to you 3 times, beggining from 22.03.2005 3:19
    I've got no responce from you so I don't know if you got it.
    So I attach the last variant right here.
    Attached Files Attached Files

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