How do I Stop This Error

Get help using Construct 2

Post » Mon Nov 24, 2014 9:24 pm

In my game I have a crate that when broken spawns a food object. At first i only had 1 object, an orange, and everything worked fine. When i added more food, 7 in total, and added them to a family i started to get this error report.

Image

I've tried deducting the behaviors from the family and them from each object, but if i do that the family doesn't retain the behaviors.

Can anyone explain to me what i may be doing wrong?

Thanks for any help.

https://www.dropbox.com/s/xga4r5gex38zbej/My%20games%20error.capx?dl=0
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Mon Nov 24, 2014 10:08 pm

One way to get rid of that is to move all your assets to layout that acts as object bank. It is a good practice to have that kind of layout to store all your instances. That way you don't have to keep irrelevant assets in your actual level. I'm not sure what actually causes that but, that fixed it.

One hint. If your food items are pretty much acting the same you could store them all in one sprite as animations.
B
34
S
9
G
3
Posts: 517
Reputation: 5,206

Post » Mon Nov 24, 2014 10:40 pm

Hey thanks for the reply. I thought i seen on this forum that its better to place such things in a family rather than an animation, which i planned to do at first. I will try that.

Also can you elaborate on the object bank? Exactly what do you mean by that?

Have a blank layout with only objects on that layout instead of above their current layout?

Again thanks for the reply
B
38
S
18
G
19
Posts: 664
Reputation: 14,107

Post » Mon Nov 24, 2014 11:31 pm

You have two image points in the same place in the banana sprite. Seems to be causing that error.
B
55
S
29
G
19
Posts: 1,520
Reputation: 25,620

Post » Mon Nov 24, 2014 11:41 pm

Also can you elaborate on the object bank? Exactly what do you mean by that?

Have a blank layout with only objects on that layout instead of above their current layout?

Yes.
B
34
S
9
G
3
Posts: 517
Reputation: 5,206


Return to How do I....?

Who is online

Users browsing this forum: jaytrott86 and 8 guests