Jump to content

Beocro

Members
  • Posts

    13
  • Joined

  • Last visited

  • Days Won

    1

Posts posted by Beocro

  1. Hey, I'm back. This time, Spriter is crashing on me. Here's what's happening: My animation plays fine at first, but when I change around the rotation and position of one sprite and try to run it again, I'm unable to stop it from playing and the program stops responding and crashes. This has happened consistently five times now, and only when I try to press the pause button (while it's playing).

    Here's a .gif if you need a visual:

    PoUqJtJ.gif

    When the cursor goes into the timer sprite, that's when it crashes. It would be great if this could be fixed so I can finish this animation. (good luck finding the problem...)

  2. Your issue is that the head is moving independently from the bone

    Thanks for the reply, but actually, it's not. The head, hair, and eye are all children of the bone. That's why I'm confused.  :???: I never move the head or eye independently, either.

     

    Apparently I unintentionally did some weird stuff with the hierarchy. The eye was sometimes moving independently. My mistake. ^-^"

  3. Hello! I've been trying to use Spriter Pro for my game, and I have character maps for the player's eye. I've set the eye as a child of the head bone, but it still wobbles around when the bone moves.

    Like this:

    DrearyOrangeFirefly.gif

    Is there a way to "pin" the eye to the head, so it sort of acts as one image? Is there anything I can do here at all?

  4. I figured it out! I have absolutely no idea why this worked, but I was trying to adjust values to get it to render correctly and happened to fix it. I simply replaced this code in my Drawer implementation's draw() method:

    int height = -(int)(sprite.getHeight()*object.scale.y);graphics.drawImage(sprite, (int)newX, (int)newY-height, (int)(sprite.getWidth()*object.scale.x), height, null);

    with this:
     

    graphics.drawImage(sprite, (int)newX, (int)(newY+sprite.getHeight()), (int)(sprite.getWidth()*object.scale.x), (int)(-sprite.getHeight()*object.scale.y), null);//Note the lack of *object.scale.y in the Y position.

    I assume it was my mistake with my implementation anyway, but at least I got it working, although I am still perplexed about how this fixed it.

  5. Hey everyone! Normally I wouldn't post on the forums for a problem, but I've been trying to figure this out for quite a while with no dice. I've been trying to render the Grey Guy using Trixt0r's Java-Spriter library with the Java2D method, but for some reason, the head and his hair aren't wanting to be rendered correctly.(That black blob on his chest is the 'hair') They just won't stay in the right positions. I really don't know what to do. Could there be a bug in the library code, or did I just mess up somewhere (most likely)? Does anyone know what could cause this? I'm fairly sure I duplicated the code from the examples exactly, so I won't post the code unless I really need to. Hopefully someone can help me, progress on my game has been halted while I try to figure this out. :)

    Here's the Spriter project+files if you want to inspect them: http://filz.us/2ztZ
    Note: I did PM Trixt0r about this a few days ago and haven't gotten any response, so I'm hoping the community can help me out.

×
×
  • Create New...