Search found 68 matches
- Fri Jul 11, 2025 10:05 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
Thanks again! Even though I "thought" I had created the proper folders, going through the process of checking on them somehow fixed the problem!
- Thu Jul 10, 2025 12:19 am
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
OK, now I am trying to set up a method of saving a puzzle in progress, so that a player's progress isn't lost between closing and reopening the iOS app. I can save a lot of the data, but can't make the export image command do what I think it should. My code keeps giving the error export: can't open ...
- Sun Jul 06, 2025 4:41 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
Thanks for all your help! It has been very valuable!
- Mon Jun 30, 2025 2:31 am
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
Thanks again, Bernd. I used the technique you included in your apps to create mask images which then can accept snapshots from the puzzle picture. Right now I am struggling with placement of the resulting pieces. Something I hope to get sorted soon:)
- Tue Jun 24, 2025 1:56 am
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
OK, I finally got the cool app downloaded, and looked it over. It is clever, and very elegantly coded. Unfortunately, the original puzzle pieces are images already pre-formed in the app. What I want to do is create the puzzle piece shapes randomly using coding. There seems to be no way to do that to...
- Mon Jun 23, 2025 11:57 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
i am fascinated, but the zip file won't download for me.
- Fri Jun 20, 2025 2:23 am
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
1. MaskData. Maskdata is one byte per pixel (as opposed to 4 bytes for imageData). That byte is either numToByte(0) for transparent or numToByte(255) for opaque. MaskData transparency is on or off Thanks again, Bernd. That works! It does what I was trying to do with the alphaData. I think I’m (hope...
- Thu Jun 19, 2025 9:48 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
Thanks so much, Craig! Yes, I am up to my elbows in the app already, and would appreciate all the help I can get :) The puzzle pieces are already designed by the app, using the points in polygon graphics (Grok helped me with that), and the UI of dragging the pieces and checking for positioning too. ...
- Thu Jun 19, 2025 5:35 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
So, is there no way to remove (turn transparent) portions of an image, pixel by pixel? In my attempt in the app I attached several replies ago, looking at the imageData of the image, it seems that the zeros I put in the first of the four bytes (the alpha channel) for each pixel immediately return to...
- Thu Jun 19, 2025 5:30 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
As an amatuer, I'm doing it for fun, and hopefully to please (impress?) my wife, who is tired of the endless ads on the puzzle apps available on the App Store 

- Thu Jun 19, 2025 5:25 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
Perhaps both?Group each duplicate graphic along with its child pixel graphics. Put them together or take them apart, you can build a perfect copy of the original image.
- Wed Jun 18, 2025 10:24 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
I see what you mean, Craig. But the number of pixels in a single puzzle piece the size I’ve been dealing with is around 8K. And the puzzles I’m hoping to make would have 100 pieces. We’re likely to exceed the LC limits in numbers of graphics, 1x0 size though they may be.
- Wed Jun 18, 2025 8:59 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
OK, so I used Berns's method, and got the image cut up into the rectangles approximating my piece sizes. Obviously, that doesn't get the irregular shapes I need. I figured I could use the alpha channel or byte number one of each pixel of the image data to make the image parts around the tabs and voi...
- Tue Jun 10, 2025 3:43 pm
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
That's super, Bernd! Thanks so much!
Regards,
rcmills
Regards,
rcmills
- Mon Jun 09, 2025 1:30 am
- Forum: Games
- Topic: cutting irregular pieces from image for puzzle game
- Replies: 62
- Views: 18704
Re: cutting irregular pieces from image for puzzle game
tmp.jpg I have been able to copy a portion of the image data with the following code, but haven't yet accounted for the tabs and voids for the puzzle piece sides. More problematic though, is that the image (the small square below the bigger image (copied from under the puzzle piece overlying the lo...