Hi. I’m a recently new user of Corona and I was wondering, is there was a logic already made for making puzzle pieces in Corona (For example, you have a bunch of pieces of a full image that you can put together on the screen)? If not, I’m working on something like that and I’m finishing the bugs on the logic. I can put it in the code exchange pretty soon, but I would rather not post what someone already did. [import]uid: 49520 topic_id: 8842 reply_id: 308842[/import]
For clarification do you mean a jigsaw puzzle? [import]uid: 12108 topic_id: 8842 reply_id: 32319[/import]
Not exactly I’m talking about having a picture broken apart into separate squares and scattered in a gridded layout. You then have to can shuffle the pieces around to try and get the full view. This logic can be used for jigsaw puzzles to with a little tweaking though. [import]uid: 49520 topic_id: 8842 reply_id: 32321[/import]
James,
Thank you for your effort!
Do you have any code to share yet?
Leo [import]uid: 53946 topic_id: 8842 reply_id: 40264[/import]
Yea I do. I’ll be submitting it this Saturday. Just wasn’t sure if It was already posted previously. [import]uid: 49520 topic_id: 8842 reply_id: 40288[/import]
Wonderful!
I’m looking forward to try it out.
Thank you,
Leo [import]uid: 53946 topic_id: 8842 reply_id: 40289[/import]
Any updates (links) yet?
Leo [import]uid: 53946 topic_id: 8842 reply_id: 40374[/import]
@anscamobile8,
use a sprite sheet, split the image into squares depending on the size you want, each frame is the image you want.
see the samples in the Corona Directory to know more about SpriteSheets
cheers,
?
[import]uid: 3826 topic_id: 8842 reply_id: 40399[/import]
Hey ansca,
It’s up now: http://developer.anscamobile.com/code/puzzle-piece-game-logic.
Let me know what you think and I hope it helps!
[import]uid: 49520 topic_id: 8842 reply_id: 40407[/import]