What is alternative for createFromObjects() here ?
pooya72 opened this issue · comments
shall i use batch ? how it works ?
Thx
There is convertTiledmap
and convertTiledCollisionObjects
, the former converts tiles into bodies, the later converts shapes you draw into bodies. The second one is more peformant and generally results in less shapes since you get to draw them yourself in Tiled.
Is that what you are asking? I'm very confused by your question.
https://github.com/englercj/phaser-tiled/blob/master/src/physics.js
i mean inserting objects and converting them to sprites in game.
http://phaser.io/docs/2.3.0/Phaser.Tilemap.html#createFromObjects
That functionality doesn't exist in this plugin.
sry for my endless questions,
is that possible to know which tile, character hit ?
(then i can hide that sprite which is a coin).
actually i want to put coins and enemies, how you do this ?
Sounds like you want to use objects, not tiles. Using an object layer, placing "tile objects" and giving them physics.
Sounds like this is answered, closing.