From cf7ddd60f65b17061ddd8e8a968c6144286395d5 Mon Sep 17 00:00:00 2001 From: Pere001 <68083904+Pere001@users.noreply.github.com> Date: Mon, 14 Nov 2022 10:30:33 +0100 Subject: [PATCH] Updated Working for Web (HTML5) (markdown) --- Working-for-Web-(HTML5).md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Working-for-Web-(HTML5).md b/Working-for-Web-(HTML5).md index dacd39b..f478713 100644 --- a/Working-for-Web-(HTML5).md +++ b/Working-for-Web-(HTML5).md @@ -297,4 +297,8 @@ Q: Mouse Input not being detected? A: Be sure that the Input Detection is in front of the Frame Draw. For some reason input isn't detected after the frame has been drawn. +Q: Failing to load resource files? + +A: Make sure that you refer to the resource directory in the same way in the code and in the ``--preload-file`` compiler argument. If you passed an absolute path to the compiler (e.g. ``C:\my_game\resources``) you'll have to use absolute paths in the code (e.g. ``"C:/my_game/resources/player.png"``), and if you passed a relative path to the compiler (e.g. ``..\resources``) you'll have to use relative paths in the code (e.g. ``"resources/player.png"``). + **Please, feel free to add here your FAQ/Issues to help others!!!**