I have an object which is pinned to an 8-directional player with enabled wrap behavior.
I also set wrap behavior to pinned object but when player leaves layout (and reappears on other side) the pin object is lost.
How can I fix that?
Thanks
Hi friend, I just tested that on construct 2 and the pinned object reappears on the other side along with the wrap object.
The problem in your algorithm must be on another part of your code, do you think you can upload your .capx so we can take a better look at it?
Hey thanks for testing, I'll have to go through the code myself. There's a lot of other stuff going on in the .capx so I'll try to check it myself.
However, there's no code referring the wrap, it's only a behavior so I'm not sure what to check.
Do you have the wrap behavior on both the object and the player?
Yes.
Develop games in your browser. Powerful, performant & highly capable.
Going with my gut feeling here - but maybe you have "destroy outside layout" to the other object too? - that would make it NOT work