PDA

View Full Version : [AS1] reset button on a drag'n'drop game


neildavey
01-21-2004, 08:33 AM
hi there
Im trying to do a drag and drop game with a reset button, all on the same frame. So when you hit the reset button the mc's which were dragged onto the dropzones go back to original place.
can anyone help me??
Oh yea, and I was wanting an ok button to appear when all of the dropzones had been covered.

can anyone please help me!

Thanks
Neil.

tg
01-21-2004, 10:06 AM
give each of your dragable objects 2 variables, 'startX', 'startY'
then when you initialize your stage, set each objects startX,startY vars the the current _x/_y values.


then once every thing is moved around, the user can hit 'reset'. inside of reset button, you tell all your draggable objects to return to their startX/startY location.