Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / snap puzzle pieces

Author
Message
chunks chunks
17
Years of Service
User Offline
Joined: 2nd Jan 2007
Location: ackworth uk
Posted: 6th Sep 2011 15:32
hi guys i`m making a jigsaw puzzle app with irregular pieces could anyone give me an idea how to make the pieces snap into place , i have tried using dummy sprites so when a collision occured between the dummy and the selected piece i position the piece with a constant x and y value then turn the sprite off .

this seems to stop the pieces moving around freely i think its due to the bounding box .

chunks.

nvidia geforce 9500gt + amd athlon 64
windows vista ultimate.
Redostrike
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: Belgium
Posted: 6th Sep 2011 21:25
Maybe posting some code could help us help you.

Only heroes live forever
chunks chunks
17
Years of Service
User Offline
Joined: 2nd Jan 2007
Location: ackworth uk
Posted: 6th Sep 2011 23:29 Edited at: 6th Sep 2011 23:30
sorry guys ive figured it out now but thanks anyways , next time i will post the code .

I used the sprite groups to filter the right ones for collision.

thanks chunks

nvidia geforce 9500gt + amd athlon 64
windows vista ultimate.

Login to post a reply

Server time is: 2024-04-20 06:32:04
Your offset time is: 2024-04-20 06:32:04