Flip camera \ world

Get help using Construct 2

Post » Sun Dec 18, 2011 3:01 am

Hello!

Is it possible to turn the camera or the gaming world?


An example can be found in my old flash game - Inverted Y

Thanks!DiscoFish2011-12-18 03:03:33
B
53
S
7
G
6
Posts: 51
Reputation: 7,136

Post » Sun Dec 18, 2011 3:57 am

It's not a camera inversion but a gravity inversion (and sprite inversion as well where pertinent) in most of this types of games. I'm not sure C2 already has this. But if not it's pretty easy to simulate. One thing that you should take atention is that if the gravity is inverted you must invert the controls to. Example. Normal gravity Left Arrow makes character walk to Left , Right walks to Right . On inverted gravity Left Arrow must make character go to Right and Right Arrow to Left. But if you want to confuse player just leave it like it is and the player 99% of times will press Left and expect character to go Left but it goes Right instead. Yeah that can get confusing :)Kiyoshi2011-12-18 03:57:51
B
58
S
13
G
10
Posts: 632
Reputation: 12,515

Post » Sun Dec 18, 2011 5:04 am

^ Sounds like he's asking for more than just gravity inversion. He wants the world ITSELF to turn upside down. I'm not sure that there's an easy way to do that...
B
20
S
9
G
6
Posts: 607
Reputation: 6,112

Post » Sun Dec 18, 2011 8:29 am

I tested you can easily rotate a layer or the entire layout, but what you want is a mirroring, so a negative scale on the Y axis.
And as far as I tested, negative layerscale doesn't work as expected (it makes your layer disappear) and you can't select a specific axis for this anyway.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Dec 19, 2011 12:03 am

I've tried flipping the backround, and it works ok. While you use just black blocks as the background it should be also fast.
download
ImageImage
B
25
S
6
G
8
Posts: 773
Reputation: 6,643

Post » Mon Dec 19, 2011 12:16 am

nice (:


All these event were bothering me I simplified your neat capx Noga :D

inverted2.capx
Last edited by Yann on Sun Sep 14, 2014 12:01 pm, edited 1 time in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Mon Dec 19, 2011 1:27 am

Oh, guys! Thank you very much! You saved my life:)
B
53
S
7
G
6
Posts: 51
Reputation: 7,136


Return to How do I....?

Who is online

Users browsing this forum: DemantDigitalArt and 20 guests