[Answered] Does C2 make complete sprite sheets?

Discussion and feedback on Construct 2

Post » Fri Jan 31, 2014 3:02 am

Hi everyone,

So I have this project that's done, but it consists of over 100 individual png files. It almost seems like there should be some way for C2 to automatically compile those into sprite sheets to speed up the download times and save graphic memory (i think)

I know there is the tile map feature..

texture packer is a program that comes to mind that does this very well. I just wonder if this is a feature I'm overlooking or if there is something 3rd party that folks often use for this.

Thanks!
Calebpart12studios2014-02-01 16:31:37
B
59
S
9
G
1
Posts: 970
Reputation: 6,611

Post » Fri Jan 31, 2014 3:35 am

I'm pretty sure it does so automatically on export, placing images into a texture atlas... Or at least I though?
ImageImageImageImage
B
62
S
19
G
51
Posts: 633
Reputation: 30,836

Post » Fri Jan 31, 2014 3:59 am

@DatapawWolf is right. It's all done automatically when you export. What would be nice tho would be to be able to export sprite sheets manually, and let the editor read from that pre-made sprite sheet if available.
B
40
S
16
G
6
Posts: 543
Reputation: 7,649

Post » Fri Jan 31, 2014 4:34 am

hmmm when i export an HTML5 project (most basic option) I have a folder filled with tons of individual files. Is there some option I'm not checking or something? I don't see anything that would indicate "make spritesheets". Minify from what I can tell just obfuscates the code, but i admit i have limited access to this mode because I can't seem to get 64bit java installed on my windows 8.1 in bootcamp.. :P
B
59
S
9
G
1
Posts: 970
Reputation: 6,611

Post » Fri Jan 31, 2014 4:40 am

I believe it only bundles animations into spritesheets, not individual sprites. Export the example, Space Blaster, and you'll see the results.
ImageImageImage
B
71
S
22
G
259
Posts: 3,794
Reputation: 143,704

Post » Fri Jan 31, 2014 4:54 am

yea that makes sense, but man wouldn't it be nice to have all of the graphics grouped together? seems like it would save download time. My project has 189 individual png graphics.. makes for longer upload and download times.. but yea thanks for confirming that i wasn't missing out on something..

the other question is could an external program like texture packer produce sprite sheets and json or some other format to where C2 would know where to look to find a file..

this of course sounds like it could get messy quick without C2 directly involved in the integration..
B
59
S
9
G
1
Posts: 970
Reputation: 6,611

Post » Fri Jan 31, 2014 1:31 pm

You could manually make them, I've made a tutorial for this very matter which can be found at https://www.scirra.com/tutorials/615/creating-a-clean-sprite-sheet
LI0NHART2014-01-31 13:34:08
B
14
S
6
G
3
Posts: 83
Reputation: 4,238

Post » Fri Jan 31, 2014 2:09 pm

that looks good for consistent sized images, but in my case all of the graphics are various sizes and shapes.

so a sprite sheet would look more like this:
http://d26bu41yhsbbx.cloudfront.net/img/texturepacker/spritesheet_in_20_s.jpg

I would imagine going with your approach it could be done, but it would require a lot of wasted space to accommodate the various inconsistent sized images.
B
59
S
9
G
1
Posts: 970
Reputation: 6,611

Post » Fri Jan 31, 2014 4:11 pm

I understand your point however, if you sort your types of images to seperate sheets. NPCs for 1 sheet, foilage for another ect, then you could use the crop in Construct 2 (holding shift) will crop all image in that animation. Anyhow hope you find your answer :)LI0NHART2014-01-31 16:11:53
B
14
S
6
G
3
Posts: 83
Reputation: 4,238

Post » Fri Jan 31, 2014 4:38 pm

awesome thanks LI0NHART :) I got the answer, I was just hoping for a different one, but i'm no longer left wondering! =D

Sincerely,
Caleb
B
59
S
9
G
1
Posts: 970
Reputation: 6,611

Next

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests