title: Transition.to not moving object properly - Corona SDK
body: <p>I have a table full of enemies and simple want them to move across the screen via gameLoop, however for some reason nothing seems to work. Its probably an easy fix but I have tried to fix it but am getting nowhere. Anyone know whats up? </p>
  
  <p><strong>gameLoop Function</strong></p>
  
  <pre><code>local i 
   for i = 1, #enemies do--.numChildren,1, -1 do 
      local blocks = enemies[i]
      if blocks ~= nil and blocks.x ~= nil then 
          enemyRate = 2.0 + (0.1 * wave)
          transition.to( blocks, { time=1500, x=300} )
      end
   end
  </code></pre>
  
  <p><strong>The Spawn Function</strong> </p>
  
  <pre><code>function spawnEnemy()
  
  local spawnData = { -- Easily store spawns in a table to make it easier to add new enemies later
  
  {name = "Blue", seq = "blueRect", frame = 3, imgSheet = imageSheetRectangle, seqData = sequenceDataRectangle},
  {name = "Red", seq = "blueCross", frame = 1, imgSheet = imageSheetCross, seqData = sequenceDataCross},
  {name = "Green", seq = "blueCirc", frame = 2, imgSheet = imageSheetCircle, seqData = sequenceDataCircle}
  }
  
  local xPos = display.contentWidth - 150
  local r = math.random(1, #spawnData)
  
  local sd = spawnData[r] -- get the spawn data for this enemy 
  
  local s = display.newSprite(sd.imgSheet, sd.seqData)
  s.name = sd.name
  physics.addBody(s, { isSensor = true })
  s:setSequence(sd.seq)
  s:setFrame(sd.frame)
  s.y = display.contentHeight - 400
  s.x = xPos
  enemies[#enemies+1] = s
  enemyGroup:insert(s)
  </code></pre>