How do I Centre Pause Menu?

Get help using Construct 2

Post » Sun Feb 07, 2016 1:31 pm

Hi. How would I go about centering the pause menu in my game if I had a moving 'camera'?

I've attached a ScrollTo behavior to an empty sprite and, by using lerp(), this acts as my camera. However, this causes a problem when creating the pause menu. I can make it so the pause menu is always on screen but how would I make it constantly centred?
B
3
Posts: 3
Reputation: 181

Post » Sun Feb 07, 2016 2:08 pm

How about putting the pause menu in the middle of the margins of the layout with an anchor behavior?
B
6
Posts: 7
Reputation: 276

Post » Sun Feb 07, 2016 3:50 pm

That worked, thanks.
B
3
Posts: 3
Reputation: 181

Post » Fri Apr 01, 2016 4:45 am

I'd put the menu on it's own layer so its on top of everything.. then set that layer's parallax to 0,0 (so it will never move)
B
88
S
29
G
14
Posts: 1,145
Reputation: 14,985


Return to How do I....?

Who is online

Users browsing this forum: ashishv, Janaina, nitin4july, shushpo and 4 guests