Problem with anchor

Get help using Construct 2

Post » Sun Mar 23, 2014 8:56 pm

Hello,

I have a problem with my buttons.
I enabled "anchor" for them to be fixed, but I have a problem with an effect.
When pressing a button, the size (height and width) increased by 10. But because of the anchor, the size increases in the bottom & the right, not the 4 sides.

puu.sh/7GN1U.jpg

Any idea guys ?
B
7
S
1
Posts: 71
Reputation: 642

Post » Mon Mar 24, 2014 2:27 am

Up :D
B
7
S
1
Posts: 71
Reputation: 642

Post » Mon Mar 24, 2014 5:20 am

Sikro wrote:Up :D


I can think of two potential solutions:

-Do not use anchor, but instead place the sprite using the ViewportTop; ViewportBottom; ViewportLeft; ViewportRight expressions or
-Replace the sprite accordingly, for exemple if you grow it of 10px width, move it 5px to the left, and same goes for height and going up.
Game design is all about decomposing the core of your game so it becomes simple instructions.
B
54
S
22
G
18
Posts: 2,123
Reputation: 17,150

Post » Mon Mar 24, 2014 11:10 am

Thank you :)
B
7
S
1
Posts: 71
Reputation: 642


Return to How do I....?

Who is online

Users browsing this forum: Hyune, Julot135 and 21 guests