Home Tutorials Forums Articles Blogs Movies Library Employment Press

Go Back   ActionScript.org Forums > General > Gaming and Game Development

Reply
 
Thread Tools Rate Thread Display Modes
Old 07-30-2012, 03:03 AM   #11
jpoopdog
Member
 
Join Date: Feb 2012
Posts: 52
Default

Quote:
Originally Posted by thawfeek_yahya View Post
yes. use a for loop to go through all you dirt tiles then draw a bitmap

ex)

var Bdata:BitmapData = new BitmapData(stage.stageWidth,stage.stageHeight,true ,0xffffffff);
var bitmap:Bitmap = new Bitmap(Bdata)
for(var i:uint =0i<dirts.length;i++) {
var dirt:MovieClip = dirts[i];
Bdata.draw(dirt)
}
How do i choose where on the bitmap the tile is saved to? they are all being copied to 0,0, rather than where they were on the screen.

Last edited by jpoopdog; 07-31-2012 at 01:55 AM.
jpoopdog is offline   Reply With Quote
Reply


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 03:39 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2013, 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.