How to use the physics body shape that I edit in the level director for enemy object when enemy spawn ?
----------------------------- -- Level Director - Example 1 ------------------------------ display.setStatusBar( display.HiddenStatusBar ) local physics = require ("physics") physics.start() local LD = require ("lib.LD\_LoaderG2") local myLevel = {} -- this creates all the display objects for the level -- myLevel will contain all the display groups so you can access all the elements of the level myLevel = LD:loadLevel("Level01") local function spawnEnemy() local enemy = display.newRect(0,0,20,30) enemy.x = math.random(10,300) enemy.y = math.random(10,400) end timer.performWithDelay(1000,spawnEnemy,0)