A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: [F8] Sliding Puzzle...Has me more than puzzled!!!

  1. #1
    Member
    Join Date
    Mar 2007
    Posts
    43

    [F8] Sliding Puzzle...Has me more than puzzled!!!

    Hi there, i've seen a couple of threads about this before but haven't managed to find much in the way of answers...hence my post.

    Basically, I want to create a sliding puzzle similar to the one found on this website: http://www.slidingpuzzle.com/puzzle.php except I want the grid to be 5x5 and i'm not too fussed about the tile animation as it moves spaces. I just want to create a really simple slide puzzle game and then add sounds (but I won't get into that part just yet).

    My trouble is; I began using some code written by Shekar K. Rao, which can be found here: http://www.flashkit.com/movies/Games...5813/index.php but this puzzle was only designed to be a 3x3.

    So far I have been able to find the common code that each tile shares to enable it's movement and I have successfully made the array 4x4 but any piece other than the 9 original ones, won't move. They remain stationary when clicked on and this has me completely stumped.

    If anyone can help me i'd really really appreciate it, I don't have a lot of time to get this project done and am fairly desperate.

    Thanks in advance to anyone willing to help a needy person

  2. #2
    :
    Join Date
    Dec 2002
    Posts
    3,518

    Maybe try something like this...

    Here's a working version using 4x4...
    Last edited by dawsonk; 08-22-2007 at 10:50 AM.

  3. #3
    Member
    Join Date
    Mar 2007
    Posts
    43
    Hi there...thanks a lot for the reply, I will check this file out in a minute. Thanks again, really appreciate it.

  4. #4
    Member
    Join Date
    Mar 2007
    Posts
    43
    ok...so I have the puzzle pieces moving the way they should by using that .fla you sent me previously (which is great). Now I need to assign each piece of the puzzle it's own music loop.

    Each music loop will play at the same time (in sequence) and loop continuously. So far I have managed to assign some sounds (as can be seen in the .fla) but what I ned to be able to do is have (for example purposes) the light red loop mute the dark red loop, and vice versa. Basically, all light colours will mute the corresponding dark colours loops (light blue mutes dark blue etc.)

    Is there anybody out there who can help me? I really really need it, and am pretty darn desperate. I have a feeling that I need to treat the movie clips as though they are buttons, but as i'm a newb I have no idea how to do so.

    I did try to hunt down an elusive tutorial by the great Craig Campbell about 'movie clip buttons' but the link seems to be no more.
    Is there anyone who has a saved version of this tutorial I could have?

    Any help would be very much appreciated.

    Thanks in advance.

    EDIT: The .fla was too big to upload (1.5 meg?) so I have uploaded a zipped .swf instead. Hope this is enough.
    Attached Files Attached Files

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