Jump to content

this.postUpdateCore() is not a function


Recommended Posts

I'm trying to implement a simple tilemap in my Phaser game with this code: 

function preload() {

    game.load.tilemap('level0', '../static/images/maps/level0.json', null, Phaser.Tilemap.TILED_JSON);
    game.load.image('stone0', '../static/images/stone0.png');
    game.load.spritesheet('player', '../static/images/player.png', 32, 48);
    game.stage.backgroundColor = '#000000';


var map;
var tileset;
var layer;var player;
var facing = 'left';
var jumpTimer = 0;
var cursors;
var jumpButton;
var bg;

function create() {


    map = game.add.tilemap('level0');


    layer = map.createLayer('Tile Layer 1');

    // layer.debug = true;


and when I start up the webpage I get the error: "this.postUpdateCore is not a function" which is occurring within the phaser.js file itself. I'm unclear on how to debug and fix this.

Link to comment
Share on other sites

  • 4 weeks later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...