Use a part of a sprite sheet

0 favourites
  • 9 posts
From the Asset Store
- This pack is suitable for shooting games, running games, platform games, and side-scrolling...
  • 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

  • Hello.

    No need. Just import your sprite frames separately and C2 will arrange your sprites into optimized sprite sheets when you export the project.

  • 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.

  • 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.

  • 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 -_-

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

    Something like this would be usefeul I'd imagine.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • New sprite object > right click the animation frames panel > Import sprite strip.

  • 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 !!

  • 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.

  • 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

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)