Loader layout and destroy object [BUG]

Discussion and feedback on Construct 2

Post » Sun Dec 11, 2016 9:02 pm

Hello, I'm using a loader layout, when loading is complete (loadingprogress = 1) I destroy an object but it seems to have no effect.

I mean, can not you destroy objects in a loader layout?

There is no information here https://www.scirra.com/tutorials/318/how-to-use-loader-layouts-to-make-custom-loading-screens
Last edited by The Mnk on Thu Dec 15, 2016 7:35 pm, edited 1 time in total.
B
30
S
13
G
21
Posts: 838
Reputation: 14,656

Post » Mon Dec 12, 2016 12:17 pm

Do you have any other actions running on the loading is complete event, e.g. go to layout? If so test by commenting those additional actions out and just run the "loading is complete" event and "destroy object" action to check that those actions aren't preventing the object being destroyed.

Also, silly question perhaps, but is the object you are destroying actually on the loader layout or on another layout?
Last edited by mekonbekon on Mon Dec 12, 2016 4:05 pm, edited 1 time in total.
B
20
S
9
G
4
Posts: 473
Reputation: 4,260

Post » Mon Dec 12, 2016 12:30 pm

Mirlas wrote:Hello, I'm using a loader layout, when loading is complete (loadingprogress = 1) I destroy an object but it seems to have no effect.

I mean, can not you destroy objects in a loader layout?

There is no information here https://www.scirra.com/tutorials/318/how-to-use-loader-layouts-to-make-custom-loading-screens


You can destroy an object on a loader layout... Even with that condition...
I honestly don't know what you really mean but destroying an object on a loader layout on loading completed is kind of unusual or unnecessary.
What are you actually trying to achieve?
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,862

Post » Mon Dec 12, 2016 5:28 pm

mekonbekon wrote:Do you have any other actions running on the loading is complete event, e.g. go to layout? If so test by commenting those additional actions out and just run the "loading is complete" event and "destroy object" action to check that those actions aren't preventing the object being destroyed.

Also, silly question perhaps, but is the object you are destroying actually on the loader layout or on another layout?


chadorireborn wrote:
Mirlas wrote:Hello, I'm using a loader layout, when loading is complete (loadingprogress = 1) I destroy an object but it seems to have no effect.

I mean, can not you destroy objects in a loader layout?

There is no information here https://www.scirra.com/tutorials/318/how-to-use-loader-layouts-to-make-custom-loading-screens


You can destroy an object on a loader layout... Even with that condition...
I honestly don't know what you really mean but destroying an object on a loader layout on loading completed is kind of unusual or unnecessary.
What are you actually trying to achieve?


The object belongs to the load layout.
When the load ends, only the "go to layout" action is executed, the other actions do nothing !, I can not destroy objects, I can not make them invisible, etc ...

What I want to do is leave a few seconds the layout in black completely.

Image

Only the ramLoading object exists in the loader layout.

Image

But I can not destroy it, or make it invisible or put the X to -1000.
B
30
S
13
G
21
Posts: 838
Reputation: 14,656

Post » Mon Dec 12, 2016 9:01 pm

If I remember correctly there is a trigger for when the loading is completed. Try using that instead of the loadingprogress = 1 condition.
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,721

Post » Mon Dec 12, 2016 11:42 pm

glerikud wrote:If I remember correctly there is a trigger for when the loading is completed. Try using that instead of the loadingprogress = 1 condition.


That works well on a minimal project but in my project does not work! I do not understand.

Just what happens is that the only action that is executed is "go to layout" the other actions are not executed in my project.
B
30
S
13
G
21
Posts: 838
Reputation: 14,656

Post » Tue Dec 13, 2016 7:23 am

Then your best bet would be to fire a bug report about this and contact Ashley with your .capx.
B
135
S
33
G
17
Posts: 1,557
Reputation: 20,721

Post » Tue Dec 13, 2016 3:41 pm

Mirlas wrote:
glerikud wrote:If I remember correctly there is a trigger for when the loading is completed. Try using that instead of the loadingprogress = 1 condition.


That works well on a minimal project but in my project does not work! I do not understand.

Just what happens is that the only action that is executed is "go to layout" the other actions are not executed in my project.


I tried both conditions... I recreated your events and as far as i tested, there were no bugs.

Are you sure your picking of object is right? There might be multiple ramLoading in the layout. And maybe the other object got destroyed you might just not know.
Last edited by chadorireborn on Tue Dec 13, 2016 7:34 pm, edited 2 times in total.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,862

Post » Tue Dec 13, 2016 3:58 pm

chadorireborn wrote:
Mirlas wrote:
glerikud wrote:If I remember correctly there is a trigger for when the loading is completed. Try using that instead of the loadingprogress = 1 condition.


That works well on a minimal project but in my project does not work! I do not understand.

Just what happens is that the only action that is executed is "go to layout" the other actions are not executed in my project.


I tried both conditions... I recreated your events and as far as i tested, there were no bugs.

Are you sure your picking of object is right? There might be multiple ramLoading in the layout. And maybe the other object got destroyed you might not just know.


My project is quite large, I will minimize it and try the loader layout to a minimum to see what is causing that behavior. I will solve this thread of conversation.
B
30
S
13
G
21
Posts: 838
Reputation: 14,656

Post » Tue Dec 13, 2016 7:31 pm

@Mirlas - Okay. Good luck. I hope you find the cause and fix of your problem.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
65
S
21
G
90
Posts: 1,124
Reputation: 59,862

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 9 guests