Prox

Members
  • Content Count

    8
  • Joined

  • Last visited

About Prox

  • Rank
    Newbie

Contact Methods

  • Twitter
    @effd_p_
  1. Hi everyone I'm having an issue with the last version of phaser, I can't do a new project because I have this error : Cannot read property 'call' of undefined at c.Device._readyCheck Do you know how to get rid of it ? The preload function isn't even launch it crash before.
  2. Hi, I was wondering how can I do with P2JS to not collide with a given group ( I don't want the player to collide with others players ).
  3. Prox

    Generate Dungeon CSV

    Error fixed, Phaser.Loader.tilemap(key, url, data, format) can get an url or data as string. So I put url to null and data to my generated CSV game.load.tilemap('map', null, Dungeon.toCSV(), Phaser.Tilemap.CSV);
  4. Hi everyone, I'm generating a random dungeon that I convert to CSV ( with Array.join ) but I can't find how to make it works with the Game.load.tilemap because the file doesn't need to be download as it's just a string in the program. How can I do to make my CSV string work with the pahser loader ? Thanks !
  5. Prox

    Paper Doll Player

    I have one spritesheet with every character's assets ( bodies, clothes, weapons )
  6. Prox

    Paper Doll Player

    Hello everyone, I'm working on a test game with Phaser. At the moment I'm trying to create a "complex" player, what I mean is that my player is a paper doll from the Kenney Character Roguelike assets I can't figure out how to create my player object, has it to be multiple sprite on the same position ? A moving tilemap ? or something else ? I may not be clear, don't hesitate to ask question. Thank you !
  7. @Sheepeuh LA PAYE EST ARRIVEE

  8. Error fixed ! When you don't precise an gid with addTilesetImage the last tileset created override those created before. map.addTilesetImage("TheGround", 'ground', TILE_SIZE, TILE_SIZE, 0, 0, 1);map.addTilesetImage("TheWall", 'wall', TILE_SIZE, TILE_SIZE, 0, 0, 0);
  9. Hello ! I'm new with Phaser and I have some issue whem I want to fill a tilemap with 2 types of tile. var TILE_SIZE = 20;var map;var layer;var player;var game = new Phaser.Game(600, 600, Phaser.AUTO, 'Fill Zone', { preload: preload, create: create, update: update });function preload(){ map = game.add.tilemap(); game.load.image("wng", "img/wng.png");}function create(){ map.addTilesetImage('tiles', "wng"); layer = map.create('Tile Layer 1', 10, 10, TILE_SIZE, TILE_SIZE); layer.resizeWorld(); for(var i = 0; i < 20; i++){ for(var j = 0; j < 20; j++){ map.putTile(0,1,j,layer);//Index 0 works each time } } map.putTile(1,3,3,layer);//Index 1 never works Throw : Uncaught TypeError: Cannot read property '2' of undefined }This is the version I actually have. This code not works when it comes to create the second type of tile. You may say try with 2 different tiles and not a spritesheet. I also did this : var TILE_SIZE = 20;var map;var layer;var player;var game = new Phaser.Game(600, 600, Phaser.AUTO, 'Fill Zone', { preload: preload, create: create, update: update });function preload(){ map = game.add.tilemap(); game.load.image("wall", "img/wall.png"); game.load.image("ground", "img/ground.png");} function create(){ map.addTilesetImage('wall'); map.addTilesetImage('ground'); layer = map.create('Tile Layer 1', 10, 10, TILE_SIZE, TILE_SIZE); layer.resizeWorld(); for(var i = 0; i < 20; i++){ for(var j = 0; j < 20; j++){ map.putTile(0,1,j,layer);//Work } } map.putTile(1,3,3,layer);//Don't work Throw : Uncaught TypeError: Cannot read property '2' of undefined }I have exactly the same error ! Uncaught TypeError: Cannot read property '2' of undefined I thing it's a problem with the tile's index but I don't know how to access it. Create instances for each tile may be a solution two, but I didn't found how to do in the doc. Here is a link if you want to check the code : http://poillic.com/games/phaser Hope you can help me with this hell.