A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: puzzled by Sliding Puzzle

  1. #1
    Junior Member
    Join Date
    Oct 2000
    Posts
    10

    Question

    I've figured out a 12 piece slide puzzle game with draggable movie clip buttons (which I called tiles-thus 11 tiles and one blank space) so now the two challenging parts are:
    1) how to jumble the "tiles" on the first mouse click (after viewing in "original" or "solved" state)could it be simply a load movie thing, where I have a "jumbled " movie load into a level above over a "solved" movie?
    and
    *2)how can the projector or movie itself detect when the puzzle has been "solved" by the user to initiate an entirely new scene. if "puzzle is solved" then....(??)

    any comments are welcome and appreciated...
    ---------
    trickD
    ---------

  2. #2
    Senior Member
    Join Date
    Mar 2000
    Location
    London
    Posts
    961
    To check whether the puzzle is solved, could you have a looping mC that checks to see if the pieces are in the correct place and if 'true' to do something.

    If (GetProperty ("piece1", _x) = xpos AND
    GetProperty ("piece1", _y) = ypos AND
    etc.)
    Do something
    End If


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center