Use a part of a sprite sheet

Get help using Construct 2

Post » Wed Jan 30, 2013 9:19 pm

Hello everyone, I just discovered construct 2 today and after a couple hours tinkering with it a question arose, to which I didn't find any direct answer...
I've got sheets of nice sprites I'd like to use, but I can't find a way to use a part of a sprite sheet as an independant object. Is it possible ? Or would I have to isolate each sprite with say photoshop, and save it as an independant image file in order to use it as an object in C2 ?

I found the animation sprite sheet import function, I'd like quite the same function but to isolate objects from a sprite sheet as doing it manually could be very time consuming.

Thanks for your attention, I'm pretty sure this is a noobish problem but I couldn't figure it out as I am actually totally new to all that stuff :O
B
3
Posts: 6
Reputation: 287

Post » Wed Jan 30, 2013 9:33 pm

Hello.

No need. Just import your sprite frames separately and C2 will arrange your sprites into optimized sprite sheets when you export the project.ErekT2013-01-30 21:33:42
B
22
S
6
G
1
Posts: 398
Reputation: 3,384

Post » Wed Jan 30, 2013 10:12 pm

Neat, but what I wanna do is actually the other way around, I don't have separate sprite frames; I have premade sheets that I want to import as one image then use parts of it as distincts C2 objects.
B
3
Posts: 6
Reputation: 287

Post » Thu Jan 31, 2013 10:17 am

Should I consider the absence of answers means it's impossible ? or is my question not clear ? ^^
Question : Can I use parts of a sprite sheet as individual objects in C2 ?
or maybe: Can I use CSS code sprites in C2 ?
I foresee that I will have to manually extrude each sprite from my sheets... what a pita -_-

Note: english isn't my native language and I'm a little bit confused by C2's use of the word "sprite", since when you add a sprite it expects a single image to turn in an object, whereas my understanding of a sprite is a group of compiled images in one file... which I called sprite sheet here to differenciate. Any disambiguation welcomed.LoPhOpHoRa2013-01-31 10:23:59
B
3
Posts: 6
Reputation: 287

Post » Thu Jan 31, 2013 10:23 am

[QUOTE=LoPhOpHoRa] Should I consider the absence of answers means it's impossible ? or is my question not clear ? ^^
Question : Can I use parts of a sprite sheet as individual objects in C2 ?
or maybe: Can I use CSS code sprites in C2 ?
I foresee that I will have to manually extrude each sprite from my sheets... what a pita -_-[/QUOTE]

Googling something like "divide sprite sheet" should give you easier solution than doing it manually :)

Something like this would be usefeul I'd imagine.
B
24
S
8
G
7
Posts: 756
Reputation: 7,192

Post » Thu Jan 31, 2013 10:26 am

New sprite object > right click the animation frames panel > Import sprite strip.
Image
B
225
S
27
G
13
Posts: 1,774
Reputation: 18,024

Post » Thu Jan 31, 2013 10:31 am

Thanks guys :)
Vee, your link is just perfect, I'll try it right now.

I'll take it the actual answer to my question is NO then, you cant use parts of a spritesheet in C2 and have to separate each element.
Maybe that was just too basic a question for people to even think of just answering "NO" :o

Now back to my sheets !!
B
3
Posts: 6
Reputation: 287

Post » Thu Jan 31, 2013 10:33 am

If your sprites are in evenly sized cells in the sprite sheet then you can import the whole thing directly into Construct. With the animation editor open, right click on the animation frames window the bottom of the screen and click "import sprite strip". Choose the number of cells across and down, and it'll slice up your sheet.

You can use parts of the sprite sheet, but you have to import the full sheet first and then delete the frames you don't want.

If your sprites aren't in uniform cells, then you'll have to do it manually.

In Construct speak, a sprite is a single 2D image. Multiple sprites can be arranged in succession to form an animation, and a single object can have multiple animations stored within it. A sprite sheet is a collection of sprites arranged in a single image.GeometriX2013-01-31 10:34:22
B
56
S
15
G
10
Posts: 910
Reputation: 11,942

Post » Thu Jan 31, 2013 11:23 pm

Yes you should be able to import it like they said, and if you really need to use your original sheet for a specific reason, there are some discussion here and there
B
20
S
5
G
8
Posts: 325
Reputation: 6,473


Return to How do I....?

Who is online

Users browsing this forum: jul, nimos100, Yahoo [Bot] and 18 guests