How can I do some kind of hats?

0 favourites
  • 4 posts
From the Asset Store
Game with complete Source-Code (Construct 3 / .c3p) + HTML5 Exported.
  • i wann create hats for my character, so i have created point "1" everywhere i need on my basic animations like "running", "jumping" etc, and everytick my hat set position to this point "1" on my character. but my character also has position to other sprite which is origin platformer. and when I am running, my hat has delay, so character is running, but hat has position not on the point, but a bit behind. it happends when im moving, running or jumping, when im standing everything works alright.

    I actualy can make different animations for each hat, but it would be stupid, so i wanna just set position, but it works different.

    can some1 help me with this problem, or suggest another way to arrange my hat?

  • Without seeing a capx it is hard to say what is causing the delay.

    My guess is you are moving the character or changing the character animation and not setting the hat in the same event.

  • Diginampl

    Make sure the event that moves the hat to the character is placed after all the events that move the character, otherwise you could be moving the character away from the hat after it's already moved and it won't move to the new position until the next tick.

    Alternatively, you could add the Pin behaviour to the hat - then you just have to move the hat once (on creation) and pin it, then it will move with the character automatically.

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • Diginampl

    I have seen lag like that. The only way I was able to fix it was to pin everything to the same base object.

    So, position the hat to the imagepoint on the head, but pin the hat to the same object that your character is pinned to, and everything will move together!

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