Hello, here is the chunk where the enemy png files are spawned. I think this is where its at. For example one pic is basically the letters HP. Its fine when it comes from the left side. When it spawns from the right side, it shows PH so its reversed for some reason. this is just a basic game for fun and my first one so the code is not too complex. thanks for looking.
function spawnEnemy()
local enemypics = {“Windows3.png”,“linux3.png”, “samsung3.png”,“Fire.png”,“Galaxy.png”,“redhat.png”,“hp.png”,“dell.png”}
local enemy = display.newImage(enemypics[math.random (#enemypics)])
enemy:addEventListener ( “tap”, shipSmash )
if math.random(2) == 1 then
enemy.x = math.random ( -100, -10 )
else
enemy.x = math.random ( display.contentWidth + 10, display.contentWidth + 100 )
enemy.xScale = -1
end
enemy.y = math.random (display.contentHeight)
enemy.trans = transition.to ( enemy, { x=centerX, y=centerY, time=math.random(2500-speedBump, 4500-speedBump), onComplete=hitPlanet } )
speedBump = speedBump + 50
end