chipmandoo
08-30-2001, 09:16 PM
ok i have
on (press) {
_root:yscope = _ymouse
_root:yscopecoil = yscope -5
setProperty (scope, _y,_root:yscopecoil);
}
and what i want to do is move 'scope' up by 5 pixels when the mouse betton is pressed to add a recoil effect. i tried using the script above but when the mouse button is clicked it moves the 'scope' object to point -5, so 5 pixels from the top.
what i need it to do is move 5 pixels above the current mouse location.
on (press) {
_root:yscope = _ymouse
_root:yscopecoil = yscope -5
setProperty (scope, _y,_root:yscopecoil);
}
and what i want to do is move 'scope' up by 5 pixels when the mouse betton is pressed to add a recoil effect. i tried using the script above but when the mouse button is clicked it moves the 'scope' object to point -5, so 5 pixels from the top.
what i need it to do is move 5 pixels above the current mouse location.