Hi all,
The fact is:
I have a game menu in which the options players select are animated (boiling) with a loop, either selected or not. In other words, the buttons of the menu players can press boil by default, and they boil faster when selected.
Moving selection left to right is pretty good: the loops fit pretty well and there's no delay, and the change of boiling animation is smooth. The issue is when players move right to left: in which case, the two animations (faster and slower) overlap for a moment, making the movement slower and lagging.
I have set the menu by using a variable, which increases and decreases by pressing right and left respectively. This variable determines both which loop to execute and which loop to break: when the variable is 1, the game runs the loop in which the first button is animated as selected (faster boiling) and all the others are animated as non-selected (slower boiling). When I press right, the variable increases (1->2), the loop breaks, and the game runs the loop for variable 2, in which another button is animated as selected (faster boiling) and all the others, including the button selected before (which before was faster) are animated slower. And this works. If I go back, pressing left and decreasing the value of the variable (e.g., 2->1) it goes through the same script but the animations overlap, are slower, and the movement lags. Why?
I suppose it's due to the fact that RPG Maker reads the script of the faster boiling animation before it suspends the slower one - but since I'm not an expert I cannot be sure about it.
Thank you in advance for your help, it's kinda driving me crazy - and in case you need something (script? Whatever?) please tell me 🙂
The fact is:
I have a game menu in which the options players select are animated (boiling) with a loop, either selected or not. In other words, the buttons of the menu players can press boil by default, and they boil faster when selected.
Moving selection left to right is pretty good: the loops fit pretty well and there's no delay, and the change of boiling animation is smooth. The issue is when players move right to left: in which case, the two animations (faster and slower) overlap for a moment, making the movement slower and lagging.
I have set the menu by using a variable, which increases and decreases by pressing right and left respectively. This variable determines both which loop to execute and which loop to break: when the variable is 1, the game runs the loop in which the first button is animated as selected (faster boiling) and all the others are animated as non-selected (slower boiling). When I press right, the variable increases (1->2), the loop breaks, and the game runs the loop for variable 2, in which another button is animated as selected (faster boiling) and all the others, including the button selected before (which before was faster) are animated slower. And this works. If I go back, pressing left and decreasing the value of the variable (e.g., 2->1) it goes through the same script but the animations overlap, are slower, and the movement lags. Why?
I suppose it's due to the fact that RPG Maker reads the script of the faster boiling animation before it suspends the slower one - but since I'm not an expert I cannot be sure about it.
Thank you in advance for your help, it's kinda driving me crazy - and in case you need something (script? Whatever?) please tell me 🙂