Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Awesome extension! I am currently having trouble with the 3D lights however. When i delete the light object, the light stays in place of the object as shown in the screenshot.

Also i know this isn't relevant to this extension but i know you developed it, the Mouse Pointer Lock extension doesn't seem to work on desktop and (chromium-based) browser version of GDevelop, only in Firefox.


Hope to see more improvements to the extension in the future!

This also applies to toggling it's visibility.

(1 edit)

Thank you for reporting this.

I was not able to reproduce the lighting issue. I checked both when using behaviors and when using actions.

Please let me know the steps to check the issue in a new scene.

Do you mean the helper is not deleted? The helper is for debugging and will not be removed.

I don't know how, but trying to reproduce the bug in a new scene/project and now it works as intended when i toggle visibility of the light object. I honestly have no clue what i did wrong since both scene events look identical.

The only difference i made is i created the "light" boolean variable using "At the beginning of the scene" and made it a scene variable instead of a global variable.

I can maybe send the project file to you to check it out yourself.

> Do you mean the helper is not deleted? The helper is for debugging and will not be removed.

No, the bug happens when the helper is on or off. Doesn't matter.

Please send me your project files. I'll leave it up to you to decide how to send the files.

Here you go!

I received the project.

I can't find an action to remove the light. I don't know how to reproduce the problem.

Please explain.

I've modified the project since i wrote the first comment and forgot to mention it, i apologize.


These are the original events that i used when i wrote the first comment.

Problem is, whenever the global boolean variable "light" which is used to check whether or not the flashlight is on or off is set to true, the light no longer moves with the player or rotate with the scene camera. It only moves when the variable is set to false.

I also apologize for late replies since i'm from Europe and wake up late.

If you need anymore info, let me know.

Your reply was not late so you don't need to worry about that.

I noticed your mistake. You entered a boolean variable in a parameter where you should have entered a 3D Object ID (string).
You should have entered "light" as a string, not the light variable.

This is not a bug in the extension.

I see. I will just continue testing stuff from another project since the issue isn't present, but thanks a lot!

Are you using the "Mouse Pointer Lock" extension on Linux? I've heard reports of issues with it on Linux.

Yes! To be specific, Arch Linux with the GNOME desktop environment using X11/X.org display server. It only works when i have GDevelop open in Firefox and nothing else.

The extension will be updated soon (if approved by GDevelop...)

An update for the Mouse Pointer Lock extension has been released. v0.1.7 is available.

Can confirm it works! Much appreciated!