Our game works perfectly on most Android devices, is designed with orientation ‘landscape’, but in some devices with uncommon screen resolution, such as bq pascal (800x480). The game behaves strangely when suspend and resume again.
The entire set of what is displayed (which is all included in a screengroup) moves left and right alternately each time it is activated after being suspended.
We use to center elements the value of display.screenOriginX display.screenOriginY.
The Android version of this particular device is 4.0.3
We use this function to control when the game comes out of suspend:
function recolocarPantallaOnResume (event)
if (event.type == “applicationResume”) then
print (“System event name and type:” … event.name, event.type)
screenGroup.x = xDispositivo
screenGroup.y = yDispositivo
Runtime: removeEventListener (“system”, recolocarPantallaOnResume)
end
end [import]uid: 55048 topic_id: 32077 reply_id: 332077[/import]