Hello! How i can get object Id by coordinate?
getObjectId(X,Y) // if background, get “background” , if unit1 get “one” or etc
Its need for this:
I have 2 object,
http://images.megapk.ru/images/625650c2875eb6bc622c03390d13d51e.png
Unit1 and Unit2
and i using
[lua]transition.to [/lua]
for move object and i need fix this:
http://images.megapk.ru/images/0a90569d3beccb2f8afb59c96da881b8.png
It was impossible to try to go through the second object?
An example of what I mean:
http://images.megapk.ru/images/52123992d2d617395c901ddaf1013563.png
I setup for object this:
[lua] physics.addBody( characterOne,“kinematic”, { density=1.0, friction=0.3, bounce=0.3, shape=pentagonShape } )
physics.addBody( characterTwo,“kinematic”, { density=1.0, friction=0.3, bounce=0.3, shape=pentagonShape } )[/lua]
Sorry for my Bad english!
What need using for this task? What better use?
I wait answer!
Thanks, best regards Ivan.
[import]uid: 211767 topic_id: 34758 reply_id: 334758[/import]