Started by Zefk, May 01, 2017, 04:38:40 AM
Quote from: Zefk on May 01, 2017, 04:38:40 AMI am wondering if there is a way to being the hero behind other entities without changing the layer. The reason is for my push and pull animation. I tried hero:bring_to_back(), but the documentation does mention that the hero is not affected by this.Animation looks funny:Changing the length of her arms and legs would make her look like she is doing some sort of monkey dance. The only way this could work is if I make the excuse that she has telekinesis psychic powers.Hero needs to be sent to back:What I want it to look like, but it has a bug: (In this case...I chopped the heroines legs off.)I would need to cancel the push/pull animation for everything, but the block. What would be the best way to disable push and pull for everything, but the block entity?
QuoteHmm... maybe for entities/heroes/etc. drawing order should be determined by tile position? So that entities in tiles with lower Y get drawn first, giving the effect that you wish.
QuoteIMO, the best solution is to adapt the art to these engine limitations (related to bounding boxes and traversable properties), and hence these limitations have to be taken into account during the creation of the art. Some of these limitations may just be the way Solarus works (or maybe not, only Chris knows this), so maybe sometimes there is no other solution than re-drawing.
QuoteCould you cut off the tops of the bookshelves and draw the tops on a higher layer? That way the hero would naturally be behind them without having to change the layer of the hero.