kiklop133

Upload game

Recommended Posts

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¬†ūüėē¬†

error.jpg

Share this post


Link to post
Share on other sites

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');

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites

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?

error1.png

Share this post


Link to post
Share on other sites

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).

error2.png

Share this post


Link to post
Share on other sites

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>

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.