Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: Flash Question [Solved]  (Read 1833 times)

0 Members and 1 Guest are viewing this topic.

Ryuza

That one guy
Flash Question [Solved]
« on: January 09, 2011, 05:54:02 pm »
  • RyuKage2007
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 290
Hello all, just curious if there might be a way to load different parts of an image from a single file in flash rather than having a single file for each sprite and tile used. I've been doing a bit of searching around for an answer but I can't seem to find anything at the moment.

For example would it be possible to single out different tiles from a tilesheet and use them in a game instead of having to have a separate file for each tile?

Any help would be greatly appreciated.

Edit: Solved, using the FlashPunk package and this tutorial: http://flashpunk.net/?p=tutorials&t=12
« Last Edit: January 24, 2011, 03:37:37 am by Ryuza »
Logged
<- Koholint Island - MC Style  <- Link's Awakening Photo Recolors  <- Wind Waker 3D Resources <- Super Mario Bros Crossover
  • RyuKage2007's Youtube
Re: Flash Question
« Reply #1 on: January 12, 2011, 05:01:20 pm »
  • Doesn't afraid of anything
  • *
  • Reputation: +42/-0
  • Offline Offline
  • Gender: Male
  • Posts: 7002
You could break them up into a movie clip and use the gotoAndStop() method to get the appropriate tile.  They'll all be in one movieclip on their own frame, but this still requires you to break the tileset up by hand.  I'm not sure if there's any means of processing an image in Flash, but you really think there would be.
Logged



i love big weenies and i cannot lie
Re: Flash Question
« Reply #2 on: January 13, 2011, 06:13:19 pm »
  • *
  • Reputation: +2/-1
  • Offline Offline
  • Gender: Male
  • Posts: 2376
you should give it a try to flixel and mappy, mappy is a tiling program that can be used on almost all gamemaking programs, I have seen it used on flash, flixel in the other hand is a flash game making program, that facilitates the use of sprites and maps into it:

Flixel:
http://flixel.org/

Mappy:
http://tilemap.co.uk/mappy.php
Logged

Ryuza

That one guy
Re: Flash Question
« Reply #3 on: January 24, 2011, 03:36:57 am »
  • RyuKage2007
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Gender: Male
  • Posts: 290
Been away for a bit and forgot to check back for a response :P

Anyway, thanks guys, I checked out Flixel and it led me to a package named FlashPunk, which allows exactly what I needed and has a lot of good tutorials.

Here's a link for how to get tile sheets working with the FlashPunk package: http://flashpunk.net/?p=tutorials&t=12

Thanks for the help.
Logged
<- Koholint Island - MC Style  <- Link's Awakening Photo Recolors  <- Wind Waker 3D Resources <- Super Mario Bros Crossover
  • RyuKage2007's Youtube
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.378 seconds with 45 queries.