PDA

View Full Version : Urgent problem???


funkydesigner
04-07-2001, 10:47 AM
Hi team.
I was hoping you could help me with a Flash problem for a University project.
I am currently designing a drag and drop game, where once the viewer has dropped the correct country onto the map, it will go to the next scene and a score will be displayed.
I have managed to do the drag and drop movieclips, but I want the player to continue onto the next scene only when all movieclips have been placed in
the correct place. I then want the score to be shown.
If you could help I would be very grateful thanks. I have looked everywhere for the solution!

Jesse
04-08-2001, 01:55 AM
All you need to do is have a variable which keeps track of the correct number of pieces dropped. Each time a piece is dropped in the right place you just;

_root.pieceCount += 1;

Then, you have a test which stats:

if ( _root.pieceCount == 10 ) {
gotoAndStop(5);
}

This assumes there are 10 pieces total and you want to go to frame 5 when the user has completed the game.

Cheers

Jesse