yeah, kind of. one thing makes it easy that is that all pieces can only be placed in a pre-defined area (a shape showing the outline of the puzzle), but i'm still looking for some kind of algorythm that makes the already fitted pieces drag/drop together... like having a,b,c mixed up, all single drag/drop-able, but when c fits to a they both "join" and get drag/drop- able as one "piece". that's the problem i now have. any solutions welcome. thanks: lars
Am 10.03.2006 20:23 Uhr schrieb "Fitzpatrick, Kevin" unter <[EMAIL PROTECTED]>: > I can't off the top of my head think of any visual ways of doing it, but > you can check the relationship of the pieces to each other. For > instance if piece A can only fit to the left of B and the bottom of C > (it's the lower left hand corner) then you could check those two > distance relationships and the rotation of each. > > You'd have to store all of the "right" relationships somewhere, such as > in the piece instances. > > Is this the kind of solution you're looking for? > > > Kevin Fitzpatrick > Flash Designer, > SAP.com Web Services Team - SAP Global Marketing > SAP Global Solutions Center > 3999 West Chester Pike > Newtown Square, PA 19073 > C (267) 254-6225 > E [EMAIL PROTECTED] > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of lars > Sent: Friday, March 10, 2006 8:04 AM > To: Flashcoders mailing list > Subject: [Flashcoders] puzzle: how to verify piece-fitting? > > hi all. i'm looking for some example on puzzle games which "detect" > (show the user) that the pieces are arranged correct. those i know > are "simple" drag and drop together ones with do not detect that the > pieces are arranged correct and fit. any examples or ideas on how > to "detect" that (when having different puzzle piece forms)? thanks: > lars > > > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com > _______________________________________________ > Flashcoders@chattyfig.figleaf.com > To change your subscription options or search the archive: > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > > Brought to you by Fig Leaf Software > Premier Authorized Adobe Consulting and Training > http://www.figleaf.com > http://training.figleaf.com _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com