Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for transitions when pushing and popping scenes. #230

Closed
wants to merge 3 commits into from
Closed

Support for transitions when pushing and popping scenes. #230

wants to merge 3 commits into from

Conversation

Panajev
Copy link
Contributor

@Panajev Panajev commented Aug 16, 2012

Added support for scene pushing and popping using animated transitions.

It only supports transitions responding to this message:

+(id) transitionWithDuration:(ccTime) t scene:(CCScene*)s
…rientation related transition methods to bring them more in line with the colour based fading methods.

Added new CCTransitionOrientationType.h header to allow this enum to be
used in the Director without importing the whole CCTransition.h header.
@rsanchezsaez
Copy link
Contributor

Does this work when popping the last scene? (Transition to black). If it does, this could be really great!

@Panajev
Copy link
Contributor Author

Panajev commented Oct 22, 2012

Theoretically, Cocos2D transitions are used to go from one scene to another
scene. It would work well if you had an empty scene for it to transition to
and you used a transition that allowed you to fade with the appropriate
color.

Otherwise, this patch follows the same limitations for pushing scenes and
popping scenes the director previously had. I'll give this some more
thought. I was planning this feature for things like menus and other layers
you might want to pop in and out quickly but with a nice transition effect.
I am also planning to use something other than strings for selecting the
transitions... the current way is not exactly code completion friendly.

On Mon, Oct 22, 2012 at 10:22 AM, Ricardo Sánchez-Sáez <
notifications@github.com> wrote:

Does this work when popping the last scene? (Transition to black). If it
does, this could be really great!


Reply to this email directly or view it on GitHubhttps://github.com//pull/230#issuecomment-9655886.

@rsanchezsaez
Copy link
Contributor

Thanks for the info. Looks quite useful anyway!

@Panajev
Copy link
Contributor Author

Panajev commented Oct 22, 2012

Thank you :).

On Mon, Oct 22, 2012 at 11:27 AM, Ricardo Sánchez-Sáez <
notifications@github.com> wrote:

Thanks for the info. Looks quite useful anyway!


Reply to this email directly or view it on GitHubhttps://github.com//pull/230#issuecomment-9657499.

@Birkemose Birkemose closed this Mar 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants