The Daily Click ::. Forums ::. Klik Coding Help ::. Making Animated backdrops with tilesets?
 

Post Reply  Post Oekaki 
 

Posted By Message

GameDragon



Registered
  23/08/2004
Points
  7
14th August, 2011 at 15:58:19 -

I'm working on a level editor, and I was wondering what was the most efficient and least resourceful way to do animated tiles/backdrops under HWA?

I've been trying to figure this out of awhile now, but so far nothing works correctly under HWA.

 
n/a

Chris Burrows



Registered
  14/09/2002
Points
  2396

GOTW WINNER OCT. 2011
14th August, 2011 at 16:34:56 -

Are we talking a one off active? Or are we talking something like an ocean, made up of 10000000 actives?

HWA is bad ass, it can handle most things. Just use actives. Put them on a different layer if you need to, so all your other actives are in front.

 
n/a

GameDragon



Registered
  23/08/2004
Points
  7
14th August, 2011 at 17:01:51 -

I see, I'll try that then. I was already getting massive slowdowns in my game, I was afraid of throwing in a million active tiles.

Okay, but how would I go about making a tile out of this? I can import the entire tile sheet into an active through events, but how do I get a 16x16 tile out of that?

Edited by GameDragon

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
15th August, 2011 at 06:17:31 -


Originally Posted by GameDragon
Okay, but how would I go about making a tile out of this? I can import the entire tile sheet into an active through events, but how do I get a 16x16 tile out of that?



You're going to have to rephrase that question a bit, I'm having trouble determining exactly what you're asking.

 
n/a

GameDragon



Registered
  23/08/2004
Points
  7
15th August, 2011 at 15:53:34 -

I apologize. I'm using a tile sheets in my level editor using the Active Picture object. The tile sheet in question is this one here.

Image

This is just a single image. How would I go about importing just a single tile from this image into an active object at runtime? If I were to just use Load Frame action, that would import the entire sheet.

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
15th August, 2011 at 21:00:37 -

For static tiles you should use the active picture object, it has an action called "add as background" that allows you to paste a single tile from a sheet into the background.

For animation use the Animated Picture object, which allows you to animated through an sprite sheet.
http://www.phizix.tk/

 
n/a

GameDragon



Registered
  23/08/2004
Points
  7
16th August, 2011 at 03:33:37 -


Originally Posted by . : UrbanMonk : .
For static tiles you should use the active picture object, it has an action called "add as background" that allows you to paste a single tile from a sheet into the background.

For animation use the Animated Picture object, which allows you to animated through an sprite sheet.
http://www.phizix.tk/

I've been using the Active Picture object for static tiles, and that works great. But does the Animated Picture object allow me select a single tile as well? I'm not familiar with this object and I've yet to see a way to do that.

 
n/a

UrbanMonk

BRING BACK MITCH

Registered
  07/07/2008
Points
  49567

Has Donated, Thank You!Little Pirate!ARGH SignKliktober Special Award TagPicture Me This Round 33 Winner!The Outlaw!VIP MemberHasslevania 2!I am an April FoolKitty
Picture Me This Round 32 Winner!Picture Me This Round 42 Winner!Picture Me This Round 44 Winner!Picture Me This Round 53 Winner!
16th August, 2011 at 07:00:17 -

Yes it allows you to select a single tile.

It does have the limitation that tiles to be animated have to be next to one another, you can't just animate through arbitrarily placed tiles using the built-in animate method.
So for this I suggest you create separate sprite sheets for each animated tile.

 
n/a

GameDragon



Registered
  23/08/2004
Points
  7
16th August, 2011 at 16:27:35 -

I see. I was hoping I didn't have to make separate sheets for each tile, but I guess I don't have a choice. Thank you for all the help. I will see what I can do.

 
n/a

Rob Westbrook



Registered
  25/05/2007
Points
  193

360 OwnerVIP Member
16th August, 2011 at 18:20:03 -

Could you not do something like allocate space for the animated tiles in the beginning of your tileset? Like save the first four cells in the first row to be the sea animation. Then get the animated pictures objects use those four tiles? I can't remember how the animated picture object works off the top of my head.

 
There are 10 types of people in the world: Those who understand binary and those who don't.
   

Post Reply



 



Advertisement

Worth A Click