Hey guys, I'm making a game and I'd like to keep my graphics safe so others wouldn't be able to use them. Is there a way I could do this by a compressed format
PNG is already a compressed format. You're unlikely to compress it much more if at all, and, of course, a compressed format doesn't protect the images anyway, except perhaps through "security by obscurity" if you use a compression format that nobody else knows about...
or possibly a formula to scramble and descramble the pictures?
Um, you mean an encryption algorithm? Sure, pick one.
However, assuming you are going to display the graphics to the user - you ARE going to display the graphics to the user, right? I mean, that's most typically the purpose of graphics, I'm just sayin.... there's no point in it.
The user can just snap a screen shot to the camera roll (top button and home button together) and they've got your graphics in a PNG file.
So, this is a problem not to be concerned about, because it can't be fixed. Sorry. Next non-issue!
(Edit: I wasn't paying attention to what forum I was in. This is MAC programming, not iPhone programming. No matter. Users can still take screen shots from your running game, just not using "the top button and the home button"...)