[r105] Large spriesheet import

Bugs will be moved here once resolved.

Post » Tue Oct 09, 2012 3:41 pm

I was trying to import a spritestrip with 47*23=1081 images
Is the maximum frame limit 1024?
I got a dialog warning it was over 1000 images, but I continued, then I got this error:

---------------------------
Construct 2 Check failure
---------------------------
Check failure! This is probably a bug:

GetHICON returned NULL

Condition: ret != NULL
File: Projects\ObjectTexture.cpp
Line: 555
Function: struct HICON__ *__cdecl ResizeBitmapToIcon(const class cr::vector2_base<int> &,class Gdiplus::Bitmap *,int)
Build: release 105 (32-bit) checked
Component: Construct 2 IDE
(Last Win32 error: 0)



Now that I've trimmed it down to 1012 images, and it imports fine.
B
7
S
1
Posts: 74
Reputation: 1,232

Post » Tue Oct 09, 2012 3:44 pm

1012 frames isnt good design for videogame,
B
96
S
25
G
20
Posts: 3,054
Reputation: 22,642

Post » Tue Oct 09, 2012 4:07 pm

But I've got 1012 aliens!
Each frame is a different alien.

Does it make any difference splitting it up into separate sprites?

edit: Feel free to close this, it's pretty obscure and the workaround is to use less than 1024 frames.mutuware2012-10-09 16:54:49
B
7
S
1
Posts: 74
Reputation: 1,232

Post » Wed Oct 10, 2012 11:05 am

There is no limit on the number of animation frames - you should be able to create over 1024. However the problem here is it looks like your computer is just running out of memory because there are so many images. I'd still recommend using fewer frames! Or maybe at least try splitting your sprite sheet in to two or four sections and importing them separately.Ashley2012-10-10 11:05:59
Scirra Founder
B
359
S
214
G
72
Posts: 22,951
Reputation: 178,578


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests