View Full Version : mr. potatohead
gman62191
09-04-2005, 06:24 PM
i made this (http://media.putfile.com/potatohead55) flash game and i want it so that when you drag the item onto mr.potatohead it will stay there when you click more, but it goes away, what script would i need to make it so that it stays?
Tower2
09-06-2005, 04:29 AM
you could try using duplicateMovieClip(), or attachMovie().
You could also try using the property ._visible
The follwing might not be the most elegant, but it might be the simplest.
put all the the potato attachments onto the stage over the same frames and create some labels in the timeline.
when you click the play button or the more button run a script on the frame that you are directed to. The script should make all the attachments visibilty set to false except for the ones that you want to see and of course the ones that are attached. hitTest() will be useful to see if the attachments are attached.
vBulletin® v3.7.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.