kvazmatik Posted May 8, 2018 Share Posted May 8, 2018 I'm trying now upload my first game on kongregate but without succes. What I get is blank screen with error textures. I guess it's server problem. So I googled but without anything usefull ? Link to comment Share on other sites More sharing options...
bruno_ Posted May 8, 2018 Share Posted May 8, 2018 See if the console log in developer tools (F12) says anything that helps. Link to comment Share on other sites More sharing options...
mattferndale Posted May 9, 2018 Share Posted May 9, 2018 I haven't uploaded to kongregate but probably path problems (absolute or relative). developer tools should show what path they are looking for this.game.load.image('example', 'assets/example.png'); or this.game.load.image('example', '/assets/example.png'); kvazmatik 1 Link to comment Share on other sites More sharing options...
kvazmatik Posted May 9, 2018 Author Share Posted May 9, 2018 11 hours ago, mattferndale said: I haven't uploaded to kongregate but probably path problems (absolute or relative)... Thank you mattferndale, I removed slash symbol and now it's showing textures. Hurray! Unfortunately game input become active only when I click on very tiny spot in TOP-LEFT corner but that's most likely kongregate's fault. Link to comment Share on other sites More sharing options...
kvazmatik Posted May 9, 2018 Author Share Posted May 9, 2018 Ok so with input problem. I uploaded game also on NewGrounds. Clicking on game does not turn it interactive. I found that maybe iframe is blocking game canvas. Am I missing some metadata in header ? Anyone got running game on these sites? Link to comment Share on other sites More sharing options...
Antriel Posted May 9, 2018 Share Posted May 9, 2018 Are you using 3.7.1 which is listening on the click event to activate sound? Previous versions only listened to touch events. Link to comment Share on other sites More sharing options...
kvazmatik Posted May 9, 2018 Author Share Posted May 9, 2018 Tried 3.7.1 and using 3.6. but that's not the issue. I mean when you load webpage with game. Game is running but it's not interactive so you have to click on it. What I found, is I have to click on iFrame which is overlaped with game canvas. Only small area are not blocked by canvas (white lines, see picture). Link to comment Share on other sites More sharing options...
kvazmatik Posted May 10, 2018 Author Share Posted May 10, 2018 I figured out this problem by adding css code into header section. Css z-index property did the job. <style> body { margin: 0px; } canvas { position: relative; z-index: -5; } </style> Link to comment Share on other sites More sharing options...
bobonthenet Posted May 15, 2018 Share Posted May 15, 2018 @kiklop133 did you figure out how to resolve this? Link to comment Share on other sites More sharing options...
kvazmatik Posted May 16, 2018 Author Share Posted May 16, 2018 @bobonthenet Yes I did, see my previous submission. So, topic can be closed I guess. Link to comment Share on other sites More sharing options...
bobonthenet Posted May 16, 2018 Share Posted May 16, 2018 @kiklop133 rather than making the user click outside the game within the iframe which is not ideal. I just found out you can add the following to your game config. I hope this is even better for you. input: { keyboard: true, mouse: {capture: false}, touch: true, gamepad: false }, kvazmatik 1 Link to comment Share on other sites More sharing options...
kvazmatik Posted May 16, 2018 Author Share Posted May 16, 2018 @bobonthenet code is working flawlessly, and if that's make game experience more stable why not use it . Thank you. Link to comment Share on other sites More sharing options...
Recommended Posts