View previous topic :: View next topic |
Author |
Message |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Sun Jun 28, 2009 12:38 am Post subject: Help with the layers |
|
|
I would implement a weather effect : rain.
I was thinking about using layer. I've draw rain in my titlesets and even managed to place it on map. Now there's a zone with rain on it.
I've placed using map layer nb2 and when my hero walk on the zone we still can see him. The rain appear before him.
To embetter the effect I need to make rain animation. How could I do that?
All your pieces of advice are welcomed! _________________ It's time to make games! |
|
Back to top |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Sun Jun 28, 2009 5:38 am Post subject: |
|
|
You can animate tiles regardless of what layer they're on. |
|
Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Mon Jun 29, 2009 3:25 am Post subject: that's a great idea! Let's do that! |
|
|
Yes that's a great idea! How can I animate tiles regardless of what layer they're on?
Do you have to use plotscrpting? What should I put in the layers?
Thanks in advance for your help! _________________ It's time to make games! |
|
Back to top |
|
 |
TwinHamster ♫ Furious souls, burn eternally! ♫

Joined: 07 Mar 2004 Posts: 1352
|
Posted: Mon Jun 29, 2009 4:58 am Post subject: |
|
|
No plotscripting.
Just regular 'Define Tile Animation' will do.
Once you set up a pattern for the tileset that your rain-tiles are on, go to the map editor and the layer which the rain is all placed on (You can press Ctrl+F to fill the screen with a tile) and then press [ctrl+x], where 'x' is the corresponding animation number (first being 1 and etcetera).
[Ctrl+x] will animate every tile of the type your cursor is currently on and animate it with the pattern indicated. |
|
Back to top |
|
 |
bis_senchi

Joined: 08 Jun 2004 Posts: 460 Location: Reims, France
|
Posted: Thu Jul 02, 2009 12:03 pm Post subject: All right! |
|
|
I've managed to implement the weather effect!
I also would like to start and stop the animation using a tag : it is not necessary that it rains all the time.
Could you please give me advice om how to do?
Thanks for your help! _________________ It's time to make games! |
|
Back to top |
|
 |
TMC On the Verge of Insanity
Joined: 05 Apr 2003 Posts: 3240 Location: Matakana
|
Posted: Thu Jul 02, 2009 8:00 pm Post subject: |
|
|
Tile animations let you check tags in the middle of an animation, or disable the animation altogether depending on a tag.
For example, in Wandering Hamster all the banners in Broaste's castle change colour after you defeat him. This is done using a tile animation.
So you could disable the tile animation when a tag is set, start on a blank tile, and have an animation pattern that immediately moves from the blank tile to the first rain tile, without waiting, eg:
right 1
wait 2
right 1
...
If the animation is disabled, then it stays on the blank tile. If it's not disabled, then it immediately goes to the first rain tile without ever showing the blank tile. _________________ "It is so great it is insanely great." |
|
Back to top |
|
 |
|