Solarus-Games English Forum

Solarus => Bugs & Feature requests => Topic started by: Zefk on April 26, 2017, 07:38:10 AM

Title: [possible bug] Custom entity traversing when set to false?
Post by: Zefk on April 26, 2017, 07:38:10 AM
I set both custom entities not to traverse  "custom_entity".
Code ( lua) Select
entity:set_can_traverse("custom_entity", false)

They still traverse unless I set traversable to false:
Code ( lua) Select
self:set_traversable_by(false)

(https://media.giphy.com/media/3ohzdNS0ZWRtzJOJzO/giphy.gif)


I set both entities to traverse "custom_entity" when traversable is false and as you can see...they do not traverse.
Code ( lua) Select
entity:set_can_traverse("custom_entity", true)

(https://s22.postimg.org/6cx0gewkh/Selection_001.png)

It works with the hero. If I set the entities to not traverse the "hero", then they do not traverse the hero.
Code ( lua) Select
entity:set_can_traverse("hero", false)

Both entities in the case of the hero are set to traversable true.
Code ( lua) Select
self:set_traversable_by(true)

(https://media.giphy.com/media/l4FGvYZEp4DI7vmow/giphy.gif)

Title: Re: [possible bug] Custom entity traversing when set to false?
Post by: Ruthless on February 23, 2018, 09:40:37 AM
I would like to know about the content you have published, can I learn by myself or have some good advice?
Title: Re: [possible bug] Custom entity traversing when set to false?
Post by: Diarandor on February 23, 2018, 12:07:59 PM
Both of them I would say.  ;D