Search the Community
Showing results for tags '1.1.4'.
-
Hello! I am having several problems upgrading from version 1.1.3 to 1.1.4. Now I am not able to position some of my sprites in the game when they are created. They always seem to appear at position (0, 0). However, I have a group of sprites that are positioned correctly and I do not understand why. Here's the code from one of my sprites: preloader: this.load.spritesheet ('player', 'assets / character / player-sprite.png', 120, 180); create: this.player = this.game.add.sprite(200, 400, 'player'); this.player.body.gravity.y = 160; this.player.body.setRectangle (75, 160, 0, 0); this.player.anchor.setTo (0.5, 0.5); As I said, I'm having difficulties in changing version. I'm blocked. Any help would be great. Greetings!
-
Hi! I'm upgrading 1.1.3 to 1.1.4 the Phaser version. I have problems with my tiles... In the game the tiles are white and collision doesn't works good. This is my code: preloader this.load.tilemap('level', 'assets/tiles/level.json', null, Phaser.Tilemap.TILED_JSON); this.load.image('tiles', 'assets/tiles/tiles.png', 16, 16); create: this.map = this.game.add.tilemap('level'); this.map.addTilesetImage('tiles'); this.map.setCollisionByExclusion([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10]); this.layer = this.map.createLayer('name in level'); this.layer.resizeWorld(); Any help? Greetings!