Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 04-27-2012, 05:54 PM   #1
Registered User
Join Date: Jan 2012
Posts: 9
Default [AS3] 2D platformer, expanding pasteboard for long level

So I'm not too sure if this is exactly a code related question...

I'm currently doing a group project and i am the environmental artist for a 2D platformer game in Flash AS3 (it'll be similar to mario with the camera etc) Well, I'm having issues with the size of what I want to take in, I understand that flash doesnt take something more than 10000px but then if i resize i'll lose quality and also i would like to make it a very long level.... The grey box (pasteboard) around the stage seems to mask my level if i try to to have the whole thing in the movieclip, and i can't seem to find any solution to expanding this. I heard that there is a way of making (i think) a blank movieclip and then putting sections of my environment in and then having code to call apon each section when they're required.... I really have no idea how to do this if thats the case and ive been googling for hours!!

please help!

Thank you!

alexg989 is offline   Reply With Quote
Old 04-27-2012, 06:07 PM   #2
Join Date: Sep 2008
Posts: 68

Create a MovieClip, and as you draw inside of it to one side you will have more space to draw. Be sure you have some sort of guide/ruler/line so you know where the bottom of the stage is at all times. Your standard stage size is about 750 by 450 pixels. Just be sure you place the MovieClip on the stage correctly and then to move your character, just have your character static (not moving) but move the environment MovieClip move opposite of the character to simulate the moving of the character. Create a MovieClip for each section of environment and place them side by side.

Last edited by Goon94; 04-27-2012 at 06:09 PM.
Goon94 is offline   Reply With Quote
Old 04-27-2012, 08:34 PM   #3
Registered User
Join Date: Jan 2012
Posts: 9

okay i think i know what you mean but the problem isnt really with making the environment move etc... its more about manipulating the environment in flash without it being obstructed and hidden by the pasteboard (the grey section around the stage).... I want to also be pretty much limitless as well with the width so i can extend the level further (if needed). the player would be in control with the movement of character in the level (so i wouldnt need it to be constantly moving(like in a level like a minecart level in donkey kong, which is constantly moving and the player only has the option to jump)). So i need to be able to actually view the full level in the movieclip as it always needs to be there.
alexg989 is offline   Reply With Quote
Old 04-27-2012, 09:09 PM   #4
dont Re Member
Join Date: May 2009
Location: Poland
Posts: 739

Do you talk about a graphic look of your level on authoring time in flash? Export it as selection to Illustrator and edit it there with adobe fxg format. Then you can save it and import it back, but I guess you will need to cut it to smaller parts. Basically you can't see such big images in Flash Professional
northmantif is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 06:37 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.