newbot Posted March 27, 2017 Report Share Posted March 27, 2017 hi guys, I hope you will give me a hint regarding my issue. We have a screen with level selection ~ 180 levels Each level with image and text. We add each element via .image method and it's very slow: it does load around 5 seconds on iphone6s would you please advise a workaround here? am I doing it totally wrong? let me know please, your help will be appreciated) Quote Link to comment Share on other sites More sharing options...
scheffgames Posted March 28, 2017 Report Share Posted March 28, 2017 You should probably do the loading in a previous state or in preload section - if you're already doing that and you still have issues there's a few tricks you could employ. The first would be to create the images before the player enters the level selection menu, place them somewhere off screen and when the player enters the levels menu simply position them as needed. Or you could create the images as needed - I'm assuming the player scrolls over them - only 10 or 20 to cover the upper portion of the screen and as the player scrolls down create additional 10,20 images. Quote Link to comment Share on other sites More sharing options...
samme Posted March 28, 2017 Report Share Posted March 28, 2017 Use a spritesheet. Or 3, 6, or 9 spritesheets. But definitely not 180 different images. Quote Link to comment Share on other sites More sharing options...
newbot Posted April 22, 2017 Author Report Share Posted April 22, 2017 To close the topic - we have used pagination and it works good. Thanks for your answers! Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.