Copy link to clipboard
Copied
I've done quite a bit of digging but it's surprisingly difficult to find informed answers to these questions.
I'm making a Flash game with a friend; as far as we can tell, the code is fine, but there are some serious framerate problems that seem entirely related to the graphics.
One thing is most of our graphics are as much as twice the size in the library as they are displayed onscreen, then scaled in the code. We had wanted to make the game still look good when zoomed in/fullscreened but that doesn't seem practical so I'm planning on resizing all of the image files to their final size in the game and removing the scaling code. Hopefully that's the major part of the problem.
Copy link to clipboard
Copied
Using an image in Flash, but scaling it down 50%, brings in overhead (like you are thinking) - it's more that you need, and adds to the slow-down of things.
Using smoothing also takes up a little bit of speed, as Flash does that during runtime. The smoothing, will make things look nicer if your project scales up in size when in full-screen, which partially lowers the need to provide such large images.
PNG versus JPG - I'm not sure if there is a difference or not, we'd have to get others to weigh in here.
Copy link to clipboard
Copied
Thanks somascope, I hope others can chime in as well.
Find more inspiration, events, and resources on the new Adobe Community
Explore Now