Copy link to clipboard
Copied
i want help to find out how to make a thing i created with a motion tween die ater being shot and i need to know how to make it die when being clicked by the mouse and then fall down and not come back
do you have animations for it dying etc?
Copy link to clipboard
Copied
do you have animations for it dying etc?
Copy link to clipboard
Copied
no , not yet
Copy link to clipboard
Copied
one way to do that would be to create a dying animation on your movieclip's timeline and label the first frame of that sequence (eg, dying). you would then use a gotoAndPlay('dying') to display that sequence.
Copy link to clipboard
Copied
thanks and then after that what do i do
Copy link to clipboard
Copied
what is it you want to do? remove the movieclip from the display?
if so, use removeChild().
Copy link to clipboard
Copied
how do i make it die when i press itafter making the dying animation
Copy link to clipboard
Copied
use a mouse listener. for example,
yourthing.addEventListener(MouseEvent.MOUSE_DOWN,yourthing_pressF);
function yourthing_pressF(e:MouseEvent):void{
yourthing.gotoAndPlay('die'); // assuming that's the correct frame name.
}
Copy link to clipboard
Copied
will it be okay if i send my game to you and then you could tell me what i need to do next
Copy link to clipboard
Copied
i don't download and correct files unless i'm hired. so, if you want to pay me, let me know.
free help i offer via the adobe forums, only.
Copy link to clipboard
Copied
ill pay u
Copy link to clipboard
Copied
send an email via http://www.kglad.com > contact.
Copy link to clipboard
Copied
plz delete this discussion
Copy link to clipboard
Copied
it's locked.
Copy link to clipboard
Copied
instead of 'yourthing' do you put instance name?
Copy link to clipboard
Copied
moderator can you delete this discussion please