Jump to content
A4R

Extract offsets and z-index to load image smore effeciently

Recommended Posts

Dear Spriters,

I have started using Spriter after I purchased it like a year ago (or more), finally.

Let me start by saying it is a nice piece of software.

I do have a question. Few days ago I finished my animations and now I am busy to load them into my SpriteKit(xcode) project.

In the game I have a character that has many interchangeable equipment parts (e.g. helmet x, with weapon y, and shield z and body armor b).

So what I did was export every equipment/body part separatly (with the same custom rect for all parts and their frames so that they all align perfectly in game) and in game loading the equipment parts and their frames(animation) depending on what equipment parts the user is wearing.

This is working but it is memory consuming.


What I would like is to export every part seperatly like I am doing now, but the export width/height (rect) should not be bigger than that of the biggest frame of that particular equipment/body part.

also I would like to have a file with the correct x y z offset so that I can align the equipment parts correctly ingame.

is this possible? I know I can do this somehow through the scml file but I would like to know if there is an easier way to do this.

Thanks for reading, and excuse me if the question is not very clear.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...