Jump to content

Search the Community

Showing results for tags 'tilemap;csv;collision;layer'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Hi, I a newbie and i was fooling around with tileMap today. I found out that the separateTile function, from Phaser.Physics.Arcade throw an exception when i want to use game.physics.arcade.collide(player,layer), my layer coming from a map build with CSV file. It seems that tile.layer return an object when you initialize the map with a Json file, but it returns an integer when you use a CSV file. separateTile: function (i, body, tile) { [..] else if (tile.layer.callbacks[tile.index] && !tile.layer.callbacks[tile.index].callback.call(tile.layer.callbacks[tile.index].callbackContext, body.sprite, tile)) { // If it returns true then we can carry on, otherwise we should abort. return false; }My CSV seems ok, the game run without problems when i comment the collision test, and the layer.debug option show that some tiles are flagged as obstacle. Exemple : https://github.com/Chapelin/Bomber/blob/master/index.html Did anybody already had this problem ? Maybe i did something wrong ? (English is not my native language, so i'm sorry for the grammar mistakes)
×
×
  • Create New...