Solarus-Games English Forum

Solarus => Development => Topic started by: Phygelius on February 02, 2017, 07:54:12 AM

Title: Disable stair animation and sound?
Post by: Phygelius 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?
Title: Re: Disable stair animation and sound?
Post by: Christopho 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.
Title: Re: Disable stair animation and sound?
Post by: ffomega on February 02, 2017, 11:49:53 AM
Take a look at my tutorial on bridges:

http://solarus_resource.site88.net/tutorial/bridges.htm
Title: Re: Disable stair animation and sound?
Post by: Christopho 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.
Title: Re: Disable stair animation and sound?
Post by: Phygelius 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?
Title: Re: Disable stair animation and sound?
Post by: Christopho 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.
Title: Re: Disable stair animation and sound?
Post by: Diarandor 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.
Title: Re: Disable stair animation and sound?
Post by: Phygelius 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...