Jump to content

Text doesn't render properly after loading tilemap


Recommended Posts

This is on 2.4.4 because 2.4.5 has some text rendering issues of its own.

I've got this really weird issue. I have a menu screen which advances to a level select and then play. When advanced to the level select then back to the menu, the menu text is unaffected. If I advance to a level before going back to the menu, the text doesn't appear any more (I've checked, and it does exist). But when we try to advance to a level which doesn't exist (and I deliver an error message) the text still appears.

I've narrowed the issue down to when I added support for tilemaps.

Edited by swissnetizen
level to tilemap
Link to comment
Share on other sites

You could first add:

game.debug.cameraInfo(game.camera, 32, 32);

to your render method, to get information on the camera.


To test if the world size is the problem put:

game.world.setBounds(0, 0, 1920, 1920); 

to the create method of your menu state. (but use the resolution your game has).



Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...