Pinning delay with Spriter animation

0 favourites
  • 14 posts
From the Asset Store
Platformer, Sidescroller Game Character Sprite Sheet
  • Hey everyone,

    So I have this sprite object that is a loop animation of a smoke. I've imported an animation from Spriter that has a head with a cigarrete.

    I've pinned the smoke object with the sprite imported, and it fits and follows ok if the character is in idle animation, standing still. However, when I start moving (scml object is pinned to another object with standard platformer), the smoke has a delay following up, like it gets left behind a few frames trying to follow the position.

    Here's a simplified version that illustrates the issue

    https://www.dropbox.com/s/ihjebgjixzx8e ... .capx?dl=0

    Any idea why this would happend, and how to fix?

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • I am having the same problem here... I made a guy in spriter with one arm missing, then ind C2 I would add an arm sprite and pin it to the character so the arm's angle could follow the mouse cursor. But it resulted in a weird lag where the guy moves and the arm is a little missplaced.

  • Hey Tigago, try updating the spriter plugin, they have fixed this now =]

  • You mean that new function they added? I didn't figure out how to use it

  • Hmm no, the pinning behaviour by itself is not delaying now

  • Here´s the most recent link I have for the plugin

    http://tinyurl.com/C2ScmlPlugin

  • Thanks man, I just tested it and indeed if you pin an object to a spriter object the bug is gone. However, if you pin an object to one of the spriter object's images (The head of the character, for example) it still has a delay.

  • hmm can't you update your object every tick? That one is working with the individual images

  • hmm can't you update your object every tick? That one is working with the individual images

    Just tried it with the same results

  • that's... odd, got it all solved here =/

  • Can you send me a .capx file so I can check out if I am doing something wrong? Also, I tried to use the "override" function to set the angle of the cannon to the mouse position but I can't get the function to work, did you ever use this function? If you did could you explain it to me? I think I am getting the "object's name" field wrong

  • Can you send me a .capx file so I can check out if I am doing something wrong? Also, I tried to use the "override" function to set the angle of the cannon to the mouse position but I can't get the function to work, did you ever use this function? If you did could you explain it to me? I think I am getting the "object's name" field wrong

    I'm sending you the file wich I've tested this problem.

    http://we.tl/QVhXoqrwI5

    I've forgot to mention that I'm using a function "set C2 object to spriter object" from the scml object every tick, not the pinning behaviour from the object I'm looking to follow the player.

    Sorry about that. Should work with your mouse necessity too.

    o/

  • Thanks a lot man, I got it solved now. Turns out I was using "set C2 object to spriter object" the wrong way: I was inserting the whole object name intead of just the last part. (Example: "Player_Head_Socket" instead of just "Head_Socket"). Nice monkey animation btw

  • Thanks man, let me know what your working on when you want so show it <img src="{SMILIES_PATH}/icon_razz.gif" alt=":P" title="Razz">

    https://www.facebook.com/monkeyballsgames/

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