Skip to content

Transitions not transitioning #2300

Closed Answered by rh101
IcemarkUK asked this question in Q&A
Jan 3, 2025 · 1 comments · 3 replies
Discussion options

You must be logged in to vote

The change to set the RenderTexture content size in PR #2120 was made because of issue #2045.

The commit where the sprite is no longer added as a child of the render texture stops the transition from working specifically because of how the cross fade is implemented, where it runs an action on the RenderTexture internal sprite. The problem is that the sprite is not part of the node tree, so it is in a paused state, and any actions running on it will not work:

void TransitionCrossFade::onEnter()
{
...
    // run the blend action
    outTexture->getSprite()->runAction(layerAction);  // <<< This will not actually do anything
...
}

Changing it to run the action on the RenderTexture instance d…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@rh101
Comment options

rh101 Jan 4, 2025
Collaborator

@IcemarkUK
Comment options

@aismann
Comment options

aismann Jan 4, 2025
Collaborator

Answer selected by IcemarkUK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants