Problem with font on MainMenu scene!

Put your problem here if it does not fit any of the other categories.

Problem with font on MainMenu scene!

Postby Marat » Sat Mar 24, 2012 1:51 pm

Hi guys!
I have small problem.

I have main scene, play game scene, help scene.
When i'm switching between scenes and returning back to main scene (sometimes) font characte not displayed.
Whats happen? and why it's occur sometimes? I can't understand.

On main scene am using MenuScene.class
//code
private Scene scene;
private MenuScene menuScene;

//How am loading font
fontTextureAtlas = new BitmapTextureAtlas(512, 512, TextureOptions.DEFAULT);
font = FontFactory.createFromAsset(this, GameConstants.FONT_ARIAL_BOLD, 70, true, Color.BLUE);
loadTexture(fontTextureAtlas);
loadFont(font);

//set child scene
scene.setChildScene(menuScene, false, true, true);

Between schen swithing i always unload all textures and claer all variables.

Main menu scene.png
font problem on menusecen class.
Main menu scene.png (29.55 KiB) Viewed 120 times

Main menu scene (2).png
font problem on menusecen class.
Main menu scene (2).png (22.7 KiB) Viewed 120 times
Marat
Once Poster
Once Poster
 
Posts: 1
Joined: Sat Mar 24, 2012 1:39 pm

Top

Return to Other Coding-Problems

Who is online

Users browsing this forum: No registered users and 12 guests