Skip to main content
September 9, 2009
Question

ending a puzzle game

Is there an easy way to make it so a flash movie recognises when several dragable objects have been put into their correct places on the stage? Like a jigsaw puzzle game for example. How can you make it so the movie recognises when all the pieces have been placed into their correct places and then moves onto the next puzzle (or a congratulations message or something)?

Ce sujet a été fermé aux réponses.

1 commentaire

kglad
Community Expert
Community Expert
September 9, 2009

each piece that's moved to the correct spot could have a property assigned to true, say correctSpot.  when each piece is dropped in the correct spot, assign its property and then loop through all the pieces to see if any have a false (or undefined) property.

September 9, 2009

Sorry, but I'm still fairly new to Flash. I don't suppose you have a link to a tutorial or something that explains how to do this?

kglad
Community Expert
Community Expert
September 9, 2009

can you determine when a piece is dropped onto the correct location and when a piece is dropped onto an incorrect location?