I modified two lines in fade code. You can modify like this, if you are using another fx.
nextView.x = _W + 500
currView.x = _W + 500
[code]
– EFFECT: Fade
– ARG1 = color [string]
– ARG1 = red [number]
– ARG2 = green [number]
– ARG3 = blue [number]
elseif effect == “fade” then
nextView.x = _W + 500
nextView.y = 0
local fade = display.newRect( -_W, -_H, _W * 3, _H * 3 )
fade.alpha = 0
fade:setFillColor( getColor( arg1, arg2, arg3 ) )
effectView:insert( fade )
local function returnFade( event )
currView.x = _W + 500
nextView.x = 0
local function removeFade( event )
fade:removeSelf()
fxEnded()
end
showFx = transition.to( fade, { alpha = 0, time = fxTime, onComplete = removeFade } )
end
showFx = transition.to( fade, { alpha = 1.0, time = fxTime, onComplete = returnFade } )
[/code] [import]uid: 96683 topic_id: 20441 reply_id: 80164[/import]