Skeptron Posted October 12, 2016 Share Posted October 12, 2016 Hello everyone! I have a big map with a tilesprite in the background (repeating mountains). When I want to hide them, the first time I do background.alpha = 0, I notice a huge stutter. I can go back to alpha = 1 and alpha = 0 as much as I want later on, no issue. Only the first alpha = 0 causes the game to lag terribly. I have tried with visible, renderable, exists etc. : same result! I have also tried to create a tilesprite with different frames and switch between them, but the impact on performance was dreadful (lost 50FPS!). How could I avoid that? What's the cause of this stutter? Thanks a lot! Link to comment Share on other sites More sharing options...
piotr Posted October 12, 2016 Share Posted October 12, 2016 Do you load the sprite in a different state (e.g. preload) that the main game state (e.g. play)? Could it be that the first time it's not full loaded? Also posting some code will probably get you more answers. Link to comment Share on other sites More sharing options...
Recommended Posts