hello i am tempting to to move an array of objects on a path
the problem is that i what that each object to go from the start of the path til the end
i store values of x, and y coordinates in an array segments={}
in this function i create a n enemy object
function creatNew()
EnemyOb = enemy.newEnemy({type=“Level1”})
EnemyOb.x=segments[1].x
EnemyOb.y=segments[1].y
physics.addBody(EnemyOb,“dynamic”,{bounce = 0,filter=enemyCollisionFilter})
EnemyOb.collision=onCollision
EnemyOb:addEventListener( “collision”, EnemyOb )
for k = 1, level.spawnNoOfEnemys do
enemysTable[k]=EnemyOb
end
for x=1 ,#enemysTable do
__ MOVE each enemysTable[x] on path from 1 to 100
end
end
i am stuck at this part for like 2 days or so … can someone help
thank you [import]uid: 169726 topic_id: 30920 reply_id: 330920[/import]
[import]uid: 52491 topic_id: 30920 reply_id: 123737[/import]
