How do I add a static image-full browser window background

Get help using Construct 2

Post » Thu Jul 02, 2015 2:37 am

Hello,
How do I add a static image to fill a browser window background?
I would like it to be responsive.
B
3
Posts: 4
Reputation: 214

Post » Fri Jul 03, 2015 5:31 am

Layer background has background image

Background image with origin point in the middle

Full screen scale outer


every tick

background image set position to
X: (ViewportBottom("background") - ViewportTop("background")) / 2
Y: (ViewportRight("background") - ViewportLeft("background")) / 2

background image set size
Width: ViewportRight("background") - ViewportLeft("background")
Height: ViewportBottom("background") - ViewportTop("background")


This should dymanically resize the background to fill your browser.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Fri Jul 03, 2015 9:04 pm

Great,THANKS!
B
3
Posts: 4
Reputation: 214


Return to How do I....?

Who is online

Users browsing this forum: Baidu [Spider] and 10 guests