How Do I Place Sprite Body Parts Together?

0 favourites
  • 12 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • Hi everyone,

    im wondering how to go about placing my character sprite together if i have him in two seperate sprites,For instance i have his hands seperate from his body for item switching.The hands have seperate animations along with the body,is it possible for me to pin my Hand animation to my body sprite and have them both work independently? I needed this for bounding Box reasons also so i can make my character carry bigger weapons.

  • Would it work to set the hands position every tick to the body, then on each animation frame create a custom image point and set the exact position to body.x imagepoint(1) body.y imagepoint(2)

    Or something similar to this?

    This way you can move the hands with the animation and ensure there always in the right place?

  • I just pin my PlayerImage sprite/animations to my Player sprite at the start of the layout as advised in the platformer beginner tutorial/s, that seems to work fine and doesn't need updating each tick.

    The Player sprite is just a basic rectangle for collision impact purposes. You should be able to pin hands to your torso in the same manner though whether you've used a basic rectangle as your Player or gone with one with it's own animations etc.

    Edit: I've re-read your post, sounds like the reasoning for your question is that you just want to keep a standard sized bounding box/collision shape? Using a basic rectangle as the Player as advised would solve this I think without having to pin hands on?

  • Pinning and setting every tick is basically the same. It's all about preference, the position of the object would have to update every tick even if you pin it.

  • Thanks You Guys,And if i was being alittle confusing its because this is my first Character in peices that i have tried to place together as one.I just dont understand the events i should use after pinning it,Like you said Nimtrix i will need to update the position every tick for it to look like its naturally one sprite. Zantium Richard Stennett thanks guys for replying.like i said this is my first character in parts like this.I am redoing my whole character to make it better for the player.

  • You could also just use something like Spriter to do this as it is free currently. You take the sprite pieces, then import them to create the animations with all the pieces.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • BluePhaze the spriter plugin work on Mobile devices? And i am not sure if spriter works with sprites peices that are as small as mine.Tweening would be alittle crazy being they are so tiny.I have them preanimated in parts so the animating is there i just need to pin it to the main character.

  • Joints? I have used few of them in my current project. Actually a lot of them...

  • RookieDev the size doesn't matter, SPriter keeps track of each image and where it moves to. It is just XML in the back end saying take this image and move it here over this amount of time. Spriter is a huge saver on file size as well since you don't have a separate image file for each frame. Just the same image files moved around.

  • BluePhaze I actually downloaded the free version of Spriter last night, it's a great program.

    I haven't looked at actually using it as a plugin yet, just for animating instead of spending the 12 hours I previously did hand drawing all my walking frames. I liked it so much I bought the Pro version today, I don't need it, I just thought they deserved the money. <img src="smileys/smiley1.gif" border="0" align="middle" />

  • Could upload an example .capx to explain to the novice as it is? Thank you very much! :)

  • When it comes to this,My main question was if i can use seperate sprites that each have its own animation and pin them together to become one sprite.For example My character sprite is a whole body with just his hand missing.I have it this way because i want to have weapons that range in sizes and types.For me to do this without having to draw a million animations i can just take my Seperate hand sprite that is already animated without the body of course and pin it to the main body of my character sprite.After that make sure that my hand sprite updates its position to the image point selected on the character sprite so it looks like its just one animated character and not different body parts.xjs@BluePhaze solved this and i want to thank you all for replying i apollogize if i was not clear enough.

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