PDA

View Full Version : Snap shot game



noclue
August 30th, 2006, 11:56 PM
Hi everyone, I'm trying to do a game similiar to this one
http://hk.promo.yahoo.com/movie/superman/Stop_Press_Game/

With minimal experience in flash and game actionscripting (and zero programming background), I've no idea where to start. Is there any book or site that I can read up?? Or is there a similiar game that I can modify??

Help!!! :crying:

NadePalm
August 31st, 2006, 02:01 AM
haha thats a fun game, cant help you here though sorry

Copes
August 31st, 2006, 09:37 AM
Hey that is quite a nice game,

i can possibly point you in the right direction (that i'd take anyway.) the way i assume it makes up the images you take is by flying superman over the top of the image of whichever city. and recording his _x, _y, _xscale & _yscale in variables.

the view through the camera will be the same city image again but masked so only the inside of the camera is viewable. and scrolling scales the image up/down or switches between a few versions of the image?

When you take a picture id capture the _x _y of the mouse and what the image scale variable is set too. id also duplicate mc or reveals one. with a copy of the city image, superman image & a mask of whatever size you
want the picture inside. see link for creating mc's below)

It then works out how far it needs to move the city image to fit inside the mask by minus'ing the _x _y of the mouse when it was captured (ie if you click at _x = 200; _y = 10; you would then set the background image inside your movieclip to
_x = -200; _y = -10;

Then work outu how big your "camera" view finder is, say its 100x100px box then you would (not 100% sure) add 50% of those measurements to your -200 and -10 to centre the image from the view finder rather than snapping the corner to where your mouse hit. ...which should set it to where you snapped the picture from, As for the scale i havent tested that but i would assume you'd then just apply whatever scale you had on your camera image to the mc's image. Then do the exact same thing with superman's image inside the mc and it should set him in the same spot as well.

As for rating the pictures id do something like work out the scale of superman, bigger the better. and work out the distance he is from each edge, further away from each edge the more points too? and if he goes into -0 or over whatever your total image size is take away points.

I know it wont be a great help lacking in code and probably a really stupid way of doing things (i have a interesting way of doing things the hard and long way :beam:) if you dont find this helpful at all give me a shout and ill try and be more specific with the code. I've just started working in flash again so im abit rusty on the actual AS :)

duplicating mc's:
http://www.kirupa.com/developer/mx/fire2.htm

noclue
September 14th, 2006, 02:54 AM
I try to figure it out for the past week, but failed. It's far more complicated than I thought. *sighed* :-/

Thanks, Copes! :) I get what you mean but programming/coding is not my forte. Hopefully they get a programmer in to help me out with this. Thanks again, Copes!