A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Hard question ???

  1. #1
    Convicted Flasher
    Join Date
    May 2003
    Location
    Leeds, UK
    Posts
    40

    Hard question ???

    In a jigsaw where all the pieces are mclips, what code would i use to recognise whether all the pieces are in place so that a new movie clip plays saying congratulations, this is really stressing me out and no tutorials explain how to do it

    Tim
    Last edited by TimB; 06-11-2003 at 08:03 AM.

  2. #2
    Senior Member
    Join Date
    Aug 2000
    Location
    Montréal
    Posts
    14,141
    If you were able to do a jigsaw, i'd assume you're at least an intermediate programmer. For your problem, the answer would be variables. If you have 15 pieces, add 1 to a count variable each time one piece falls in place. When that count equals 15, your puzzle is finished.
    gparis

  3. #3
    The ActionScript Master Master64's Avatar
    Join Date
    Apr 2003
    Location
    Netherlands
    Posts
    654
    Hoi

    if you have MX you should have a look at the ActionScript Tutorial it is about a jigsaw. check how it is doen there!
    Master64
    useing:XP,MX

    don't send me PM's because i never check it so if you what to contact me use Email

  4. #4
    Convicted Flasher
    Join Date
    May 2003
    Location
    Leeds, UK
    Posts
    40
    im more of a beginner, its taken me ages to get to this stage!!

    what code would i put to assign the variables. Say for the most simple puzzle which only has 4 pieces

    Tim

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