Jump to content

this.postUpdateCore() is not a function


johann_dev
 Share

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() {

    game.physics.startSystem(Phaser.Physics.ARCADE);

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

    map.addTilesetImage('stone0');

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

    // layer.debug = true;

    layer.resizeWorld();

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

  • Recently Browsing   0 members

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