Mouse Down, Move Sprite, How?

Ask a Question related to Macromedia Director Lingo, Design and Development.

  1. #1

    Default Mouse Down, Move Sprite, How?

    To anyone out there,

    Below is my script of moving a sprite to the right while mouse is down, but instead of move it seems like the entire sprite change to a new location. Can I make it move smoothly like animate it to slide to the left or right? Thanks.

    on mouseDown me
    sprite(17).locH = sprite(17).locH + 175
    go to "Portfolio"
    end

    -Alamak-


    Alamaks webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Must Move Mouse
      All: I am having a problem in Flex with the click event... I click on a panel set with a click that changes the view to another screen which has...
    2. how do you move all models in a sprite at once?
      Sorry, I'm a newbie at Director 3D. Suppose a 3D member contains multiple models. I have figured out how to move an individual model, but I am not...
    3. problem with mouse over sprite...
      Hey , What i am trying to do is have a sprite (thats in a director movie all the time) and when the mouse hovers over this sprite it will automaticly...
    4. Move sprite along path with arrow keys???
      Hi. I have an idea for a project, but have no idea how to create it in director. I want to move a sprite along a path, by using the up down left...
    5. Move mouse cursor to X,Y location and simulate mouse click
      Hi, Just something that slip my mind.. but how do you move the mouse cursor to a sprite member and simulate a mouse click? Any help is...
  3. #2

    Default Re: Mouse Down, Move Sprite, How?

    Thanks Reznor, but it seems like your code got some errors. I don't know how to fix it.

    I am using the "Slide In Out" behaviour now. I use send message (mSlideActivate) to trigger the sprite to slide but how do I write this code in mouseDown event? Thanks.


    -Alamak-


    Alamaks webforumsuser@macromedia.com Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139