Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 07-09-2012, 08:47 AM   #1
harilalkm
Senior Member
 
Join Date: Sep 2007
Posts: 169
Default Create shapes using image tiles

hi,

I need to create a shape using several images.. Like i have letter "A" i need to create the a by different picture tiled together. How is it possible? Any Idea?
regards
__________________
My lab results
harilalkm is offline   Reply With Quote
Old 07-09-2012, 06:49 PM   #2
-:)lauri
Senior Member
 
Join Date: Aug 2008
Location: Helsinki, Finland
Posts: 1,184
Default

I'm not sure what kind of an info you can use when putting images to the stage but this would be one way: make txt file with info like this:

Code:
00000100000
00001010000
00010001000
00111111100
01000000010
10000000001
and then load it to the ActionScript file for the tiles for the letter "A". Then split the text to the array from linebrakes and use 2d arrays to load and position images to the stage related to the info in that map. Just let the number 1 represent the black color and 0 the empty background.
-:)lauri is offline   Reply With Quote
Old 07-09-2012, 09:53 PM   #3
henke37
Senior Member
 
henke37's Avatar
 
Join Date: Mar 2009
Location: Sweden
Posts: 10,821
Send a message via Skype™ to henke37
Default

You mean one of those gigantic images were lots of images are tiled together to form one big image when viewed zoomed out?
__________________
Signature: I wrote a pair of articles about the timeline.
henke37 is offline   Reply With Quote
Old 07-10-2012, 12:43 PM   #4
harilalkm
Senior Member
 
Join Date: Sep 2007
Posts: 169
Default

@henke37 yes that is wat i need. but i dont' want to zoom in or out.... I have done by creating a grid of tiles.. there will be a bitmap object of the Letter. and each tile will check if it is colliding with the shape. if so i will add the tile to the corresponding grid column and if not will not add anything... i don't know is it a good logic... if you can help me out i will be gratefull...
__________________
My lab results
harilalkm 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 02:19 AM.

///
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.