Hi!.

You have a contradiction in the script... if the event is mouseUP, the the
mouse will be not "stillDown" since it was up when triggered the handler.

Try replacing ir for on mouseDown.

You also forgot to put updateStage to see the changes.

It would look like this:

On MouseDown
  repeat while the stillDown
    Sprite (6).locV = sprite(6).locV-1
    updateStage
  end  repeat
end

Try it, it worked for me!
Agust�n.

PS: I changed it from -5 to -1 �cos it was too fast

Genevieve Young wrote:

> Hi list
>
> May I know what's wrong with this script I've written?
>
> On MouseUp
>   repeat while the stillDown
> Sprite (6).locV = sprite(6).locV-5
>   end  repeat
> end
>
> I am trying to move sprite (6) five pixels upwards from its current
> position. It's not working correctly.
>
> Can anyone help?
>
> Thanks
>
> Genevieve
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
> [To remove yourself from this list, or to change to digest mode, go to
> http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
> email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
> Lingo-L is for learning and helping with programming Lingo.  Thanks!]


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to