Screen Orientation Lock (reopened)
Description
This extension adds,
- Locking the Screen Orientation Using Orientation API ( Offers a way to check it ) -- Including Reverse Orientation.
- Expression ( For getting Current Locked Orientation )
How to use the extension
Changing The Orientation
- Go to actions, camera and you will see the event Change Orientation.
Check The Orientation, Condition
- Go to Conditions, Camera and you will see the event "If Orientation"
Checklist
- [x] I've followed all of the best practices.
- [x] I confirm that this extension can be integrated to this GitHub repository, distributed and MIT licensed.
- [x] I am aware that the extension may be updated by anyone, and do not need my explicit consent to do so.
What tier of review do you aim for your extension?
Reviewed
Example file
Extension file
Extension by @CreatorADOfficial
You can update the extension on this "Pull Request" by commenting the update command: in the comment field, type !update, then drag and drop a zip file with your extension file in the commenting field, like how you initially submitted the extension. It should look like this:
!update [MyExtension.zip](https://github.com/GDevelopApp/GDevelop-extensions/files/12709661/MyExtension.zip)
It can take a few seconds for the file to fully upload and show as the above. Once it is like shown above, click "Comment" and let the bot do the rest!
For Constibutor
My extension is not a duplicate of Orientation Checker. That one is reactive — it only detects the current orientation and lets the developer show an object/message if the game is being played in the wrong orientation.
By contrast, my extension is proactive — it uses the Screen Orientation API to force the game into either portrait or landscape mode. This is a different use case: instead of just warning the player, it actually locks the orientation.
Thank you, If there's somethings for changing. I'm ready to work on that, I'm also sorry but I had to reopen it because the other one was closed before I can explain.
Is it not the same as your other PR?
- https://github.com/GDevelopApp/GDevelop-extensions/pull/1817
Hello D8H, Yeah it's the same I just changed the name and other things to avoid confusion.
I had to reopen it because the other one was closed before I can explain.
I'm not sure which one you meant, but please do stop opening new PR for the same thing.
- https://github.com/GDevelopApp/GDevelop-extensions/pull/1770
- https://github.com/GDevelopApp/GDevelop-extensions/pull/1767
- https://github.com/GDevelopApp/GDevelop-extensions/pull/1765
- https://github.com/GDevelopApp/GDevelop-extensions/pull/1817
I'm sorry, It's my first extension, a bit inexperienced. I'm ready to learn. close all of them please, except this one. also if there's something for changing please tell me. Thank you!!😁
I had to reopen it because the other one was closed before I can explain.
I'm not sure which one you meant, but please do stop opening new PR for the same thing.
Hi! I’ve updated the extension and added an example project. All checks are passing again—would love a review when you get the chance🙂