> I press the button changing the variable, for example. Which sets the text.
Which variable and which text?
Are you talking about Index3 and "Engine_Type_Text"? The text should display (Index3+1)&"/5"
So when Index3=2, then the text would display "3/5". Is this not the case?
It would be a lot easier if you could share the project file.
No, that's not it at all. We're talking about a real delay, not as stated in the text.
I can say that no wait 0 will help now. The project works on its own. Adding more and more different new systems makes it work worse. And I don't understand at all how to track it, even through the debugger.
Here are two screenshots for you as an example. At the first stage, all the texts indicate the beginning of the layer and successful use of ajax. In the second place, identical actions, but in functions. THE TEXT IS NOT DISPLAYED IN THE FUNCTION. Absolutely. I don't understand at all where the delay is and what the problem could be. We're not talking about Engine_Type_Text, we're talking about all the texts that are on the screen.
Or another point. With variable 0, the sprite position is on some coordinates, with variable 1, the sprite position is on other coordinates.
Here's an example
variable 0 = x.sprite -> 25
variable 1 = x.sprite -> 45
When the layer starts, we get x.sprite = 25. I press the button, the variable has changed to 1, the coordinates are still 25. I press the button, the variable is already 2, the coordinates are 45.
Although variable 2 does not set any coordinates. :/
I press back, to variable 0 = the coordinates are again 45. Although they should be 25. I press the button again so that the variable is -1, and the coordinates are again 25.
I don't understand at all what's going on, why are the functions lagging and how can I display the text if not every tick ??? Where every tick works perfectly.