A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: [Help] External Tilesets.

  1. #1
    A Flashkit User
    Join Date
    Sep 2005
    Location
    Ontario, Canada
    Posts
    405

    [Help] External Tilesets.

    Hello everyone.

    I have recently been interested in Pixel Art and and pixel games. I know there are many tilebased tutorials out there for Flash but I have not been able to find any answers to actually using premade Tilesets.

    For example, I would create an image that consisted of a grid of images acting as the tiles and through Flash, create a map/image by externally taking that tileset and cutting it up. I would think this would be better then creating each individual tile and importing them into Flash as seperate images.

    I'm pretty sure it's possible, I've seen various tilessets used in Flashgames. As far as I could learn from trying to find answers, I know I would have to use something called bitmapData.


    Can someone link me to a tutorial on how to do this? I'm using CS3 by the way. Thanks.

    -Ostil-

  2. #2
    Student
    Join Date
    Apr 2001
    Location
    -
    Posts
    4,756
    possible with Flash 8+ and bitmap data. You basicly load the tileset- slice it up and put each slice into an array container as bitmapdata.
    Then when rendering the map you can either use copyPixels() or attachBitmap() into movieClips to render the screen out of the tiles.

    some time ago I made this little demo in Flash8
    http://board.flashkit.com/board/show...5&postcount=53
    you can pick some code snippets out of it

  3. #3
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223

  4. #4
    Senior Member ihoss.com's Avatar
    Join Date
    Oct 2004
    Location
    Norway
    Posts
    581
    I didn't know you had written that tutorial in AS3 as well tonypa.

  5. #5
    A Flashkit User
    Join Date
    Sep 2005
    Location
    Ontario, Canada
    Posts
    405
    Thanks for the replies!

    @renderhjs:
    That's pretty much what I was looking for. Your examples will be very helpful, thanks for the information.

    @tonypa:
    Great tutorial! You must have just wrote that recently because I was searching through your site when I was looking for answers but couldn't find that AS3 version. Your tutorial will be really helpful, thanks.


    -Ostil-

  6. #6
    crossconscious
    Join Date
    Sep 2005
    Location
    Belgium
    Posts
    1,188
    If you're using AS3, I'm working on a new scrolling engine (again!), which, amongst others, has a BitmapTileLayer layer type. This used a bitmapdata object, which you can load externally before creating the layer. It doesn't have loading functionality itself though. I can send you a copy if you'd like.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center