How do I force pinned objects to wrap

Just started using Construct 2? Post your questions here

Post » Sun Jun 21, 2015 12:51 am

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
B
8
S
1
Posts: 34
Reputation: 439

Post » Sun Jun 21, 2015 11:50 am

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?
B
17
S
7
Posts: 277
Reputation: 2,514

Post » Sun Jun 21, 2015 8:45 pm

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.
B
8
S
1
Posts: 34
Reputation: 439

Post » Mon Jun 22, 2015 2:10 am

Do you have the wrap behavior on both the object and the player?
B
12
S
4
Posts: 48
Reputation: 910

Post » Mon Jun 22, 2015 12:29 pm

Valhallen wrote:Do you have the wrap behavior on both the object and the player?

Yes.
B
8
S
1
Posts: 34
Reputation: 439

Post » Sat Jul 04, 2015 5:21 pm

Going with my gut feeling here - but maybe you have "destroy outside layout" to the other object too? - that would make it NOT work :D
B
16
S
8
G
1
Posts: 153
Reputation: 2,554


Return to Beginner's Questions

Who is online

Users browsing this forum: No registered users and 1 guest