Shrinking Sprites in Flash

Subscribe to Shrinking Sprites in Flash 9 posts

avatar for Chimaker Chimaker 39 posts
Flag Post

I decided that I want to learn flash and start making games that just anyone can play right off the internet, and after fiddling with the tutorials in the first post on the forum (How to make Flash games), I decided that I should try rewriting a game I already wrote in python to get used to actionscript. I figured that if it was all already written and figured out then it would be much easier than trying to come up with something new AND figure out how to put it together.

My problem is that my game was written to be played fullscreen at a 1024X768 resolution.

Since that probably won’t jive with a lot of people’s monitors, I don’t want to do that, but I can’t just say the screen’s smaller now because then all the sprites will be too big…

So my question is, is there a way that I could run the game in the background at its normal resolution… and then… like… take a snapshot or something of it and paste it on the stage? If that’s not possible, is there a better way to do it, or will I have to shrink all the sprites and re-figure the math?

If that’s really what I’d have to do then I’d probably be better off just writing something new since it was a bit of a project the first time, but I’d like to convert this game if it’s possible…

 
avatar for NineFiveThree NineFiveThree 1370 posts
Flag Post

If learning the language is the problem at hand, I would not recommend starting with a project which has a somewhat problematic portability.
Go for something else so you can get used to the language. If that’s done, you should be able to do the conversion.


A snapshot of a 1024×768 at 30fps, that’s like 720 HD video. Now think again if that was a good idea.

 
avatar for BobJanova BobJanova 855 posts
Flag Post

You could put all the game area inside a container and set its xscale and yscale properties.

 
avatar for BobTheCoolGuy BobTheCoolGuy 3752 posts
Flag Post

Flash can scale automatically. Problem is integrating that with Kongregate.

 
avatar for EndlessSporadic EndlessSporadic 10478 posts
Flag Post

Shrink all of your images in Photoshop. Photoshop’s expansion algorithms are horrible, but its shrinking algorithm is absolutely fantastic.

 
avatar for Chimaker Chimaker 39 posts
Flag Post

Hmmm… Well putting it that way NineFiveThree, I guess that wouldn’t work very well…

Automatic scaling is nice to know though…

I don’t have photoshop, but I’ll keep it in mind…

Well, I think I will try something else, but thank you all of you for your advice. I’ll probably be asking you all for more as soon as I get stuck, probably sooner than later since I like to be complicated.

 
avatar for Draco18s Draco18s 6860 posts
Flag Post
Originally posted by Chimaker:

I don’t have photoshop, but I’ll keep it in mind…

Ahem

 
avatar for qwerber qwerber 4717 posts
This post has been removed by an administrator or moderator
 
avatar for Chimaker Chimaker 39 posts
Flag Post
Originally posted by Draco18s:
Originally posted by Chimaker:

I don’t have photoshop, but I’ll keep it in mind…

Ahem

Yeah, I had that one coming, didn’t I…