Jigsaw

cnmeyer1980cnmeyer1980 Member, PRO Posts: 211
edited November -1 in Working with GS (Mac)
Hi guys,

I'm racking my brains on how to create a simple (very simple, say 5 pieces) jigsaw puzzle.

I've gone through a couple of sites and had a look through all the templates built within GameSalad but cant seem to find anything on how I would go around creating one.

If anyone can advise me of anything they know, or have found, please let me know.

Many thanks in advance for any help you guys can provide.

Cheers,

Chris

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi Chris; couple of ways of doing jigsaws, I would think. One way would be (which could be refined) :

    Make up your jigsaw as finished, then make a note of the position of each jigsaw piece.

    Put drag Rules in each of them (I'm assuming you know these or seen them in templates, etc).

    Move the jigsaw pieces to their start positions (i.e away from the finished jigsaw area); then put small invisible actors in the same positions as each jigsaw piece finished place. (Up to you what size, i.e how sensitive it'll be). Name these JPlace1, JPlace2, etc.

    For your jigsaw pieces, (let's call them Jig1, Jig2, etc.): in the first one:

    Rule
    When touch is released
    ----the following inside the above-----
    When actor receives event overlaps or collides with actor of type JPlace1
    Interpolate self.Position.x to Jig1.Position.x
    .2 seconds
    Interpolate self.Position.y to Jig1.Position.y
    .2 seconds

    Otherwise
    Interpolate self.Position.x to --- original x coordinate of jigsaw piece
    1 second
    Interpolate self.Position.y --- original y coordinate of jigsaw piece
    1 second

    etc., for all pieces, changing parameters accordingly.

    Untested, but that's the right "ballpark".

    ----------------------------------------------
    http://davidgriffinapps.co.uk/

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • cnmeyer1980cnmeyer1980 Member, PRO Posts: 211
    Hi mate,

    thank you so much for the above, I will give it a go and see what happens.

    thank you once again and have a brilliant day.

    cheers,

    Chris
Sign In or Register to comment.