I want the screen to fade to black when my game character reaches the top of the screen, something that starts out with:
1 2 | if player.y < 50 then --screen fade out |
I guess you need to put all your display objects subject to fade out in a group, then start the transition for this group like this:
1 | transition.to( myGroup, { time=1000, alpha=0.0 } ) |
views:1316 update:2011/10/18 15:01:22