Command does not work when game is exported

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By meteor0id

When I export my game, the shooting command doesn’t work even though it does work in the engine. The screen shake works but a bullet doesn’t spawn and there’s no sound. Why would this be happening?

try
look
Project/Project setting/Debug/Gdscript

And then run it check for errors

ramazan | 2022-02-06 08:35

How are you loading the resources used? If you are not loading them using the “res://” path, then although it works fine through the editor it wont work after you export.

kelaia | 2022-02-06 14:03