You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Multiple scenes are common in a large game. We should add several built in transition effects. The basic idea of how to do transition are:
We have currently running scene from_scene and the scene to be transited to to_scene.
Render one frame of from_scene to a texture, and create a sprite from_sprite.
Assume that the to_scene have enough resources to render. We render one frame of to_scene to a texture, and crate a sprite to_sprite.
Change to a temporary scene which has only two sprites: from_sprite and to_sprite.
Perform transition between these two sprites.
Once the transition has finished, we change the scene to to_scene.
As you can see, the most important step is render to texture. So we should find a way to render scene to a texture first and then do the scene transition.
Any suggestions?
The text was updated successfully, but these errors were encountered:
Multiple scenes are common in a large game. We should add several built in transition effects. The basic idea of how to do transition are:
from_scene
and the scene to be transited toto_scene
.from_scene
to a texture, and create a spritefrom_sprite
.to_scene
have enough resources to render. We render one frame ofto_scene
to a texture, and crate a spriteto_sprite
.from_sprite
andto_sprite
.to_scene
.As you can see, the most important step is render to texture. So we should find a way to render scene to a texture first and then do the scene transition.
Any suggestions?
The text was updated successfully, but these errors were encountered: