Updated How can I force a screen to be locked either horizontal or vertical?.md (markdown)
commited
commit
01243435324f1617e45c75479371eb70bded9307
... | ... | @@ -1,3 +1,7 @@ |
1 | Fancade can be played in portrait or landscape mode, whichever you're most comfortable with. Games made with Fancade might work best in portrait or landscape, but should try to support both. |
|
2 | ||
3 | That said, creators have discovered ways of *forcing* the player to use one mode or the other. Here's how you can do that, even though you shouldn't. |
|
4 | ||
1 | 5 | There are several ways to achieve it. The first one is changing camera rotation depending on the screen orientation so the way a player flips a device doesn't have an effect on what is displayed on screen: |
2 | 6 | |
3 | 7 | [[/uploads/IMG_20191013_100643.jpg]] |
... | ... | @@ -7,5 +11,3 @@ These scripts will set vertical orientation. If you want horizontal, just wire t |
7 | 11 | The second method is way straightforward, just place the [[Accelerometer]] script block anywhere on floor (don't forget to wire it to something) — it will literally lock the screen orientation to a state that was when a game was opened. It's useful when you don't necessarily need a specific orientation to be set but you want it to be unchangeable during gameplay. |
8 | 12 | |
9 | 13 | [[/uploads/Screenshot_2019-10-12-23-59-57-807_com.martinmagni.fancade.png]] |
10 | ||
11 | Might be worth noting that all of these are a last resort for games that are not just inconvenient, but impossible, to play in the "other" orientation. Else just let the user play the way they prefer. |
|
... | ... | \ No newline at end of file |