make my button follow, help!!

Get help using Construct 2

Post » Sun Jul 29, 2012 12:37 pm

well, im making a simple game, my character is "scroll to" so when my character is moving, the button are left out, how to fix this? thanks
B
10
S
3
G
6
Posts: 33
Reputation: 4,285

Post » Sun Jul 29, 2012 12:53 pm

To get the buttons to follow the screen you need to move them to a new layer above the main one. This can help separate HUD elements from the rest of the game.

Then you edit the properties of the layer so that the Parallax details all equal 0. The parallax details control how fast the layer scrolls when the camera moves and is often used to create more interesting backgrounds where distant mountains move slower then closer tress, as in real life. With the value at zero, anything on this layer will not move allowing it to remain on the screen at all times!

Another hint, try controlling the location of the HUD elements with the Anchor behaviour. This way the HUD stays on the same place across multiple screen sizes.
B
29
S
4
Posts: 42
Reputation: 2,391

Post » Mon Jul 30, 2012 1:10 pm

[QUOTE=DalekAddison] To get the buttons to follow the screen you need to move them to a new layer above the main one. This can help separate HUD elements from the rest of the game.

Then you edit the properties of the layer so that the Parallax details all equal 0. The parallax details control how fast the layer scrolls when the camera moves and is often used to create more interesting backgrounds where distant mountains move slower then closer tress, as in real life. With the value at zero, anything on this layer will not move allowing it to remain on the screen at all times!

Another hint, try controlling the location of the HUD elements with the Anchor behaviour. This way the HUD stays on the same place across multiple screen sizes.[/QUOTE] Thank you!!
B
10
S
3
G
6
Posts: 33
Reputation: 4,285


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 17 guests