GDevelop-extensions
GDevelop-extensions copied to clipboard
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
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.