problem with buildPhysical()

Hi,

maybe I'm overlooking something but when I use buildPhysical() I do not get any physical representation of the map. What's more, all my other physical bodies instantiated after that do not show up as well.
If comment the buildPhysical out, those work fine.

I do not get any errors in the console, turning on the debugMode of Lime does not reveal anything either.

Maybe someone can help me as I'm just starting off and someone else must've run into this? What am I most probably missing?

Thank you in advance,
Mathias

It may seem a silly question, but are you sure you have set up the properties correctly in Tiled?

Thank you for the quick reply and I don't mind the silly at all ;) although I've no idea at the moment what I could have overlooked.

Here's what the .tmx in xml format results in:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
  <tile id="0">
   <properties>
    <property name="HasBody" value=""/>
    <property name="bodyType" value="static"/>
    <property name="bounce" value="0.8"/>
    <property name="density" value="0.1"/>
    <property name="friction" value="0.1"/>
   </properties>
  </tile>
  <tile id="1">
   <properties>
    <property name="HasBody" value=""/>
    <property name="bodyType" value="static"/>
    <property name="bounce" value="0.5"/>
    <property name="density" value="0.5"/>
    <property name="friction" value="0.5"/>
   </properties>
  </tile>

There is a small possibility that having the physics lib already required may be causing a conflict, if possible when you get a chance could you send me over your project ( or a simplified demo ) showing the problem to support@justaddli.me

views:1237 update:2011/10/16 9:47:44
corona forums © 2003-2011