Author Topic: Disable stair animation and sound?  (Read 2492 times)

0 Members and 1 Guest are viewing this topic.

Phygelius
  • Newbie
  • *
  • Posts: 8
    • View Profile
Disable stair animation and sound?
« on: February 02, 2017, 07:54:12 AM »
Hey =)
I want to add some transition zones between different gras layers on my map but don't know how to do that without stairs.
Is there a better way to do that or can I disable the animation and sound when the character uses a specific stair?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1186
    • View Profile
Re: Disable stair animation and sound?
« Reply #1 on: February 02, 2017, 08:54:48 AM »
You can use sensors that change the layer of the hero when he walks on them. One sensor on each layer. You will probably need an invisible platform so that the hero does not immediately fall back to the lower layer when arriving on the higher one.
I will do a tutorial about this very soon.

ffomega

  • Full Member
  • ***
  • Posts: 223
    • View Profile
    • Solarus Resource & Tutorial Site
Re: Disable stair animation and sound?
« Reply #2 on: February 02, 2017, 11:49:53 AM »
Take a look at my tutorial on bridges:

http://solarus_resource.site88.net/tutorial/bridges.htm
My tilesets page can be found here:
http://absolute-hyrule-tutorials.solarus-games.org/

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1186
    • View Profile
Re: Disable stair animation and sound?
« Reply #3 on: February 05, 2017, 02:11:48 PM »
And here is my video tutorial on how to make a bridge! https://www.youtube.com/watch?v=bXQ7WGK8kvg
I also put a link to ffomega's tutorial.

Phygelius
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Disable stair animation and sound?
« Reply #4 on: February 06, 2017, 11:35:30 AM »
Thanks ffomega and Christopho for your great tutorials!
It's working fine for me, but I can't throw shrubs upward because they disappear under the higher layer.
Is there a solution for that problem?

Christopho

  • Administrator
  • Hero Member
  • *****
  • Posts: 1186
    • View Profile
Re: Disable stair animation and sound?
« Reply #5 on: February 06, 2017, 12:51:27 PM »
Generally I don't want thrown items or projectiles (arrows, boomerangs, the hookshot) to magically climb ladders.
But if you want to, it should be possible by using a custom entity that detects the thrown item and changes its layer.

Diarandor

  • Hero Member
  • *****
  • Posts: 1061
  • Cats are cool! (ΦωΦ)
    • View Profile
Re: Disable stair animation and sound?
« Reply #6 on: February 06, 2017, 01:07:51 PM »
As Chris says, you can use custom entities, instead of sensors, to change the layer of other entities appart from the hero. I want to point out that this can be used with enemies (the ones you want), so that they can traverse bridges/ladders of this type.
“If you make people think they're thinking, they'll love you. But if you really make them think, they'll hate you.”

Phygelius
  • Newbie
  • *
  • Posts: 8
    • View Profile
Re: Disable stair animation and sound?
« Reply #7 on: February 11, 2017, 05:40:22 PM »
Thank you for your replies!
I wanted to throw the shrubs upwards, because the two grass layers are connected directly with each other (without a ladder) and it looks wierd when the shrub disappears under the grass...
but now the ground of my whole overworld is on layer 0, thats much more easier for a beginner.

My new problem now is, that I can't throw the shrubs downwards :P (because they collide with the slopes in any direction)
I would like to try the custom entity as a 'jumper' for objects, but I have never scripted before... so I don't know how to begin...