Set viewport/layout HEIGHT scale?

Get help using Construct 2

Post » Sat Feb 07, 2015 7:58 pm

I'd like the effect on Mickey Mouse's Castle Of Illusion where you turn the gravity upside down and it squashes the game viewport to a slither then stretches back out and the viewport is upside down. How do you adjust the "screen size" or the camera area's HEIGHT at runtime? I can do layout scale but I need to squash and stretch the height, preferably into negative values so as to create a vertical flip when it reaches -100% scale.
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,268

Post » Sat Feb 07, 2015 8:04 pm

Sounds like a job for shaders. My scale effect is based on the bottom left at the moment, but could be modified to center vertically.

But if you aim for a mobile platform then shaders aren't reliable.

Can you share a video of the effect in action in Castle of illusion?
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Sun Feb 08, 2015 12:45 pm

Sorry for the delay, it took me a while to find the video (I was thinking it was the sms version!) https://www.youtube.com/watch?v=Tz70_Z4YIUE#t=702 you can see it goes from 100% to 0% until finally -100% with the negative values being the image vertically upside down. Would this be possible to implement as an effects shader?

EDITED: correct link!
Last edited by Zebbi on Mon Feb 09, 2015 8:09 pm, edited 1 time in total.
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,268

Post » Sun Feb 08, 2015 12:56 pm

From the description that sounds quite doable, but the video link is not the right one :)
B
19
S
6
G
7
Posts: 1,101
Reputation: 6,146

Post » Mon Feb 09, 2015 8:09 pm

Whoooooops! I went to some effort to get the right timecode too! Here it is :D https://www.youtube.com/watch?v=Tz70_Z4YIUE#t=702
B
41
S
12
G
14
Posts: 1,122
Reputation: 11,268


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 5 guests