well, when i move my game to my iphone, and in the game, i switch scenes, it kinda freezes for a second and then goes to the next page instead of fading to black or showing a loading page. How fix that?
When ever you have a behavior that says to change scene, have rule that says game.change scene is true, Make a timer and after 0.3 seconds change scene.
Create a big black actor that covers your scene. Change alpha to 0
When game.changescene is true Change self.image.alpha to 1 Interpolate self.image.alpha to 0 In 0.3 Change game.Changescene to false
Hopefully that will work. I only have the one scene in my game so haven't done it personally. It looks right
Create your loading image.In the actor that have change scene rule, insert before a spawn actor rule and spawn your loading screen. During the loading wheel remain to screen your loading image
Comments
Which part are you referring to?
When ever you have a behavior that says to change scene, have rule that says game.change scene is true,
Make a timer and after 0.3 seconds change scene.
Create a big black actor that covers your scene. Change alpha to 0
When game.changescene is true
Change self.image.alpha to 1
Interpolate self.image.alpha to 0
In 0.3
Change game.Changescene to false
Hopefully that will work.
I only have the one scene in my game so haven't done it personally. It looks right
During the loading wheel remain to screen your loading image