Add this to your code:
on beginSprite me
if sprite(pSprite). locH >whateverYouWant Then
if sprite(PSprite).locH <whateverYouWant Then
sprite(pSprite).loch = (me.spriteNum)
end if
end if
end
It should work, alternatively you can use shapes and lines to
constraint a sprite movement. Look up constraint in the help
files.
HTH
JohnT
Colby Dodson wrote:
> I have sprite that is set to follow the mouse vertically using this script
> here....
>
> property pSprite
>
> on beginSprite me
> pSprite = sprite(me.spriteNum)
> end
>
> on prepareFrame me
> sprite(pSprite).locH = (the mouseH + pSprite.locH) / 2
> end
>
> I am having trouble setting boundaries as to how far it can scroll up or
> down. Can anyone help?
[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!]