How can I do some kind of hats?

Get help using Construct 2

Post » Thu Mar 09, 2017 6:26 pm

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?
Posts: 19
Reputation: 232

Post » Thu Mar 09, 2017 7:54 pm

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.
Banned User
Posts: 1,229
Reputation: 34,910

Post » Thu Mar 09, 2017 8:45 pm


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.
Find all the Construct 2 games that were on Steam Greenlight here
Posts: 510
Reputation: 7,274

Post » Fri Mar 10, 2017 12:55 am


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!
Posts: 438
Reputation: 17,950

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests