How do I scale layout while keeping one layer the same

Get help using Construct 2

Post » Thu Sep 15, 2016 4:47 pm

Hi everyone,

So I have a zoom system controller by the player. This zoom system simply scales the layout by adding 0.02 to the layout scale every tick while a button is down. To zoom out it just subtracts 0.02 every tick while another button is down. This works fine.

Unfortunately I also have a HUD overlay on the game and I really dont want this to scale. The HUD is added via a global HUD layer.

I've tried scaling all the layers apart from the HUD but this causes some very odd behaviour from my turrets - they no longer point at the mouse (in fact all coordinates are off, I assume because the original layout scale hasn't changed and everything is still working on that).

How can I scale the whole layout, while keeping the HUD looking the same?

Thanks!
B
13
S
6
Posts: 130
Reputation: 1,553

Post » Thu Sep 15, 2016 4:58 pm

Under HUD layer properties, set Scale rate to 0 and it won't change when you scale the layout.
B
46
S
16
G
73
Posts: 2,084
Reputation: 43,677

Post » Thu Sep 15, 2016 5:04 pm

plinkie wrote:Under HUD layer properties, set Scale rate to 0 and it won't change when you scale the layout.


Honestly, I must have looked at that about ten times as I was trying to figure this out! You are spot on, that was exactly the solution required.

Thanks for your help :)
B
13
S
6
Posts: 130
Reputation: 1,553


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 28 guests