I am posting another question as the community here is great and I always get good answers.
First of all, I finally was able to finish my first serious application for class and, while I still have a lot of work with the visual design, the code is working and it it looks really cool thanks to Thunkable (and everyone helping here). There is one step that I am trying to optimize as it takes some seconds and it will also be helpful for my next app: a RPG game, so I would like to ask one question to the community.
I will try to explain my problem as best as possible: When I load a particular screen, this screen shows some buttons with the headings for a topic (for my class app) or the images with the components in an inventory (swords, potions, … for the RPG game).
Example: I click on “Lectures” and the application sends the user to a screen (Lectures) that will load 10 buttons:
- Lesson 1
- Lesson 2
- Lesson 3
- Lesson 4,
My current app works with Anycomponent and it creates X Rows, each with a button in them and then writes the label “Lesson 1”, … in them… aside from some additional text alligned next to the button (% of completion).
Problem: When loading the “Lessons” screen it takes 1-2 seconds to show it, most likely due to creating 10 rows and 10 buttons and to make them visible…
Question: Is there any way that Thunkable will load this in memory (RAM) in a particular moment (for example, while I am in another screen) so that when clicking in the screen it does not take some seconds? or is there any other faster way to achieve my goal?
Note: I know that I can create X buttons in the design. I just wanted to avoid doing it due to two reasons: First, my current app works for several classes and not only one (it takes the data from Airtable and, depending on the numbers of Lessons, it creates X number of buttons). But even doing so, it would not solve my second issue which is related:
In my RPG game, I encounter the same problem: even if I have X slots (buttons or images) for the inventory, replacing the background image with the images (sword, potion, …) it takes the same amount of time. I cannot predefine the images as the inventory depends on which items the player gathers along the game. So the problem is the same: whenever I access to the inventory it takes 2 seconds or so to show everything because the app is trying to change all the images…
Is there any way of speeding up this process? It would be great if the loading part could be done while in the “Menu” screen where the user usually spends some seconds.
Thanks in advance.