View Full Version : moving mouse without moving it
brandong08070
01-03-2009, 08:56 PM
I have the scope of a rifle that follows my mouse and I want it to have a recoil. But I can't just move my scope because it follows the mouse. Any ideas on how to target the mouse to move?
Bod720
01-03-2009, 10:50 PM
Just make the recoiling animation inside to scope movie clip, then add some code like:
onMouseDown = function () {
scope.play()
}
Hopefully you know how you need to manipulate that code to make it fit your game.
|
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.