Behaviour conflict (HUD)

Get help using Construct 2

Post » Tue Jul 24, 2012 2:06 pm

Having a problem combining anchor behavour (for HUD) and other behaviour (eg. Sine).

What I wish to do is have an indicator, in this case a red arrow, showing that it's possible o scroll right.
This indicator should be "attached" to the window, following it when scrolling, thus I use anchor as explained in the tutorials.

However, I want it to be more obvious by animating it after a Sine so that the arrow urges the player to scroll right.

If I though add an Anchor to the object it deflects the Sine movement.

How can i make the arrow follow the field without disabling the sine movement?

See examples:

Without anchor (how the arrow should behave): test_withoutAnchor.capx
With anchor (how it should scroll): test_withAnchor.capxvAnte2012-07-24 15:03:59
B
27
S
4
G
4
Posts: 13
Reputation: 4,555

Post » Tue Jul 24, 2012 3:04 pm

Ditch the anchor behaviour, put your sprite on a layer with parallax set to 0,0.
B
27
S
8
G
8
Posts: 903
Reputation: 8,452

Post » Tue Jul 24, 2012 3:07 pm

I set the sine movement to 'value only' and then use that value to manually position the arrow.
sineAndAnchor.capx (r99)
B
54
S
28
G
18
Posts: 1,520
Reputation: 24,990

Post » Tue Jul 24, 2012 5:10 pm

Great ideas both of them! Thanks for the help guys!
B
27
S
4
G
4
Posts: 13
Reputation: 4,555


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 22 guests