Player getting destroyed on layout switch

Get help using Construct 2

Post » Sat Oct 15, 2016 8:14 am

Hello.

I'm having an issue and I can't find the problem at all. I've seen the events several times and I can't find the problem why my player is getting destroyed when I switch Layout.

I don't have any player is outside layout destroy event, nor destroy outside layout behaviour, in general I do not have anything at all that could trigger this.

I also trying giving the player the persist behaviour and still having the same issue, what could I be missing?

Thank you
B
14
S
5
Posts: 252
Reputation: 1,713

Post » Sat Oct 15, 2016 11:19 am

You should upload a capx or at least a screenshot of your events...we'd be able to help more, and possibly find a solution quicker.

Is an instance of the player already on that next layout?

Is there an event 'create object' > player for that layout?

You may get lots of questions here. As i said, better help will be available if folks can see your events, capx.
B
38
S
18
G
19
Posts: 664
Reputation: 14,112

Post » Sat Oct 15, 2016 11:41 am

Objects are only loaded on the layout they're in. Your player must be set as a global object to appear on every layout.

Image
B
125
S
43
G
41
Posts: 849
Reputation: 28,260

Post » Sat Oct 15, 2016 12:36 pm

andreyin wrote:Objects are only loaded on the layout they're in. Your player must be set as a global object to appear on every layout.

Image



GOD BLESS YOU.
B
14
S
5
Posts: 252
Reputation: 1,713


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 30 guests