Transition-Bug
I found the same bug as Yogamatta.
The screen size used for e.g. the “slideLeft” transition is computed from the group.
If display objects outside of the visible screen are placed in the group during “scene:createScene” the group gets bigger and the transition is off.
Very simple testcase:
Just use the “storyboard” sample code provided by Ansca.
In the file “scene2.lua” add a new display object outside the screen limits, for example:
[lua]---------------------------------------------------------------------------------
– scene2.lua
local storyboard = require( “storyboard” )
local scene = storyboard.newScene()
…
– Called when the scene’s view does not exist:
function scene:createScene( event )
local screenGroup = self.view
image = display.newImage( “bg2.jpg” )
screenGroup:insert( image )
– new image outside screen
testImage = display.newImage( “Icon.png” )
testImage.x = 500
testImage.y = 100
screenGroup:insert( testImage )
…[/lua]
Start the sample in the simulator and you’ll see that the transition from scene1 to scene2 is off.
The workaround to place all the offscreen elements in the enterScene listener is not good, some scenes e.g. have display objects that are shown only partially onscreen, and these need to be shown in the transition phase, too.
BTW: I like the storyboard api, thanks for this!
[import]uid: 107675 topic_id: 17828 reply_id: 75481[/import]