PDA

View Full Version : Cursor change help



InfestedDemon
April 29th, 2006, 02:49 PM
i need help. I'm currently making a game where your a doctor of robots and fix them but i have run into a snag. I need to have something where you have buttons on the screen (I can do that) but where when you click them it changes the cursor and that has its own properties so like the hand can move things around but then you click on the cutter and that can cut the metal skin.


HELP ME!

Don't think your help wont be unoticed as you WILL be included in the credits when the game gets put onto the internet.

JoshuaJonah
April 29th, 2006, 02:54 PM
you need to define some variables for the tools properties that are triggered when clicking on the button

then you can attach a movieclip with the special cursor you want and have it be ther cursor and move it on enter frame, something like this:

button.onRelease = function(){
somevar = true
someothervar = true
var thewrench:MovieClip = attachMovie("wrench", "wrench")
wrench.onEnterFrame = function(){
this._x = _xmouse
this._y = _ymouse
}
}

InfestedDemon
April 29th, 2006, 02:55 PM
yes, yes, YES! Thank-you so much! I owe ya one. In the credits you go.....

JoshuaJonah
April 29th, 2006, 03:05 PM
no problem:mountie: