GDevelop-extensions icon indicating copy to clipboard operation
GDevelop-extensions copied to clipboard

Screen Orientation Lock (reopened)

Open github-actions[bot] opened this issue 3 months ago • 6 comments

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

gdevelop-game.zip

Extension file

ScreenOrientationLock.zip


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!

github-actions[bot] avatar Sep 21 '25 12:09 github-actions[bot]

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.

CreatorADOfficial avatar Sep 21 '25 12:09 CreatorADOfficial

Is it not the same as your other PR?

  • https://github.com/GDevelopApp/GDevelop-extensions/pull/1817

D8H avatar Sep 21 '25 12:09 D8H

Hello D8H, Yeah it's the same I just changed the name and other things to avoid confusion.

CreatorADOfficial avatar Sep 22 '25 13:09 CreatorADOfficial

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

D8H avatar Sep 22 '25 17:09 D8H

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!!😁

CreatorADOfficial avatar Sep 22 '25 17:09 CreatorADOfficial

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🙂

CreatorADOfficial avatar Oct 14 '25 12:10 CreatorADOfficial