taking apart a picture, help

Hey guys, I am brand new to Corona SDK as of right … now. But I have been going through the tutorials and I love it. But I am already stuck somehow. I am sure it never happens to noobs like me. Anyway, I search the forums and couldn’t find anything so I thought I would try posting. I want to grab a picture from the camera library, and then have the app divide it into 4 pieces and mix them up so I can then put it back together like those old sliding puzzle games. I figured out how to grab a picture from the library, but I can’t for the life of me figure out how to divide it up or put it together with the sliding image example. Are there any slider puzzle games out there made in Corona that I could look at or does anyone have any ideas that could help? Thanks in advance!
SM
p.s. I am also a recent convert from gamesalad! [import]uid: 79586 topic_id: 16050 reply_id: 316050[/import]

search the codeExchange for Johnathan Beebe’s Puzzle code, it is exactly what you are after.

cheers,

?:slight_smile: [import]uid: 3826 topic_id: 16050 reply_id: 59662[/import]

sweet, thanks man! [import]uid: 79586 topic_id: 16050 reply_id: 59667[/import]

I found a puzzle code, but it doesn’t seem to work. Where can I find the one you are referring to? Thanks.
SM [import]uid: 79586 topic_id: 16050 reply_id: 59754[/import]

I believe this is the one:

http://developer.anscamobile.com/code/puzzleapp

I just tried running it with the latest stable build (2011.591) and it worked for me in the simulator. [import]uid: 49447 topic_id: 16050 reply_id: 59761[/import]

Thanks, that was it! One more question, in some of the tutorials I am going through the refer to functions, like removeSelf() or .isVisible = true, etc. Is there a reference somewhere that has a list of all functions like that? Or am I misunderstanding functions? Thanks.
SM
p.s. you can’t tell that I am new to programming can you? :wink: [import]uid: 79586 topic_id: 16050 reply_id: 59780[/import]

This page has a complete list of all functions and parameters:

http://developer.anscamobile.com/resources/apis

That link and the forums are basically my bible for Corona development. [import]uid: 49447 topic_id: 16050 reply_id: 59787[/import]

Hey thanks guys! These forums are really responsive! [import]uid: 79586 topic_id: 16050 reply_id: 59816[/import]

Thanks for all the great advice, so far it has been very helpful. But I still am not fluent in coding. In the puzzle example in the link above there is something that says local i, what does the i mean? Thanks.
SM [import]uid: 79586 topic_id: 16050 reply_id: 59916[/import]

I think it has something to do with how to divide the picture into pieces but I am not sure. [import]uid: 79586 topic_id: 16050 reply_id: 59917[/import]