sman118 wrote:First off, congratulations on reaching Steam and the launch of 1.0. I'm finally digging into Spriter and its amazing.
I'm using Spriter for my enemies and NPC's and I'm running into trouble with the origin point. I've added the platform behavior to the Spriter Object, but its lifting my artwork too high. Can I adjust the origin point on the Spriter Object somehow?
Not yet, but choosing the bounding box and origin of the runtime's main hitbox is an upcoming feature to both the editor and the plugin. Sorry no ETA on this just yet.
Also, I've dabbled with spawning a box and using that for the behaviors (like you would with a player character), but Construct 2 won't let me create a container and put a Spriter object inside. I guess it doesn't like putting a container in a container.
This is probably the best way to do it. Unless I'm misunderstanding you, it seems you just made a simple mistake. You should just be able to add the behavior boxsprite and add that sprite to the container that the scml object and all it's associated sprites are already in. Then use the pin behavior on the scml object to stick it to the behavior boxsprite. Just adjust the hotspot of the boxsprite until the scml object appears in the correct place. And then each time you will be creating an instance:
- Code: Select all
spawn scml object
scml object-set position to boxsprite
scml object-pin to boxsprite
Please let me know if you have any more trouble, and there is a thorough scml plugin tutorial linked in my signature.
Eventually as I said, though, you will just be able to draw a box around the object in Spriter, and when you load it in C2, your scml object will be set to that exact bounding box and origin.