Hi all,
First, I know there is a special procedure to report a bug however I already found the problem and can solve it. The problem is the solution prevents me from adding more sprites. Moreover, the capx is 60Mo and my connection is just crap and keeps failing the upload. I'll keep trying to upload it but meanwhile, I was hoping somebody might already have an answer to this.
Let me explain the problem because it is quite simple.
I'm working on the Spooky Heroes project :
scirra.com/forum/plateformerspooky-heroes_topic78999.html
I have a lot of different characters (~20) with many animations (~20 per characters). I created a layout which is not used where I put all my sprites to be able to load them in the other stages layouts.
The problem is that since I added the 2 latest characters sprites, some other sprites display a black box the size of the sprite instead of the sprite itself. Here is an example :
<img src="http://www.spooky-heroes.com/images/bug1.png" border="0" />
And here is the panel in the software :
<img src="http://www.spooky-heroes.com/images/bug2.png" border="0" />
As you can see, a torch should be displayed in place of the black box.
My two latest characters are the elementalWater and elementalAir you can see in the second screen. When I delete them, the black box bug doesn't appear. Morever, I used a crystal ball Webgl effect on the characters before and the bug even happened to the UI (top left panel) displaying black box too. I removed the effect and there were less black boxes.
There are only 3 lines of code related to those 2 new characters so I don't think this is a code problem.
I'm guessing the bug comes from the way I use or call images. Is it ok to create a not used layout and just put everything there to be able to load them elsewhere ? I do that because players can choose heroes so I need all of them available, and some heroes are able to summon some other characters... I want to avoid copying all characters in all layouts each time since there will be a lot of stages (only 7 for the moment) Moreover each time I create a new hero or character, I'd need to add it to all layouts again...
Once more, I'll try to upload the capx but if anybody could help without it, that's be very nice of them.
Browsers affected:
All
Operating system & service pack:
Window 8
Construct 2 version:
152
Thanks !