How to make an object pinned to another. [Solved]

Get help using Construct 2

Post » Sun Oct 27, 2013 12:53 pm

Hi,

I know that the title may suggest that my problem is not really a problem but my lack of knowledge on how to use the program, however i have a slight problem when it comes to moving an object with the character all the time.

I have my Character carrying a Sword (Solid behavior) with him (System | Every Tick | Sword Set position to Character (Image point 1). Image point 1 is the point where my character hand is.
The Character is connected to a Dummy (Platform behavior). (System | Every Tick | Character Set position to Dummy (Image point 0).

The problem occurs when the layout scrolls. Then the Sword no longer sticks to the Character but decides to move faster therefore moving to the right/left of the Character, even though it should set position to the character hand every tick.

The character connected to the dummy works fine.

I have no idea why is this happening. There are no animations set yet so the origin points and the hand image point is not the problem (also tried to connect the sword directly to dummy and the problem still occurs).

Any ideas why this is happening?

Nevermind... the sword was on another layer. Problem solved.fajfas32013-10-27 13:21:53
B
3
Posts: 2
Reputation: 229

Post » Sun Oct 27, 2013 12:57 pm

There's an actual behavior called pin. Check it out.
Zelda Gamekit (my project)



Example capxs:

Zelda-Style Inventory

Zelda Health

3-saveslot system

[url=https://www.dropbox.com/s/d4396pwak0oh7q6/ZeldaDialogueSystem.capx?dl=0]Zelda-like Dialogue[
B
51
S
24
G
30
Posts: 534
Reputation: 19,620


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 21 guests