Edit Action Properties
Once you inserted the command below the "Mouse.hide()" command, it's time to edit the action's properties.
You must tell which object will be dragged around the screen. To do so, go to the "Target" field (still on the Actions panel) and type "arrow" - the instance name you just gave to your object.
Also, turn on the "Lock mouse to center" option - this will make your symbol's center be locked to the mouse's center, that is what we want. If it was off, the new symbol would still move together with your mouse movements, but the new cursor's placement would be wrong (see image for the correct parameters applied).
That's it. You have just created a simple script that, on the first frame of your movie, hides the standard mouse cursor, and then makes another object follow it, acting as a new cursor. It will only act inside your movie, but it will perform just like a normal cursor.
|» Level Intermediate|
Rating: 8.98 Votes: 364
|No information about the author has been provided.|
|Download the files used in this tutorial.|
|Download (36 kb)|
|More help? Search our boards for quick answers!|