1
Themes / Re: Cosmo's Main Menu - An unified theme
« on: April 06, 2017, 02:51:54 PM »
Yeah I know it's very messy, but I did this code long time ago (way before we see the first wheel fade out) and I don't even use the animation plugin!
So basically I created my own animation system.
The "// ANIMATION CURVES" section is the creation of different arrays with a list of values from 0 to 100 (to be used as percentage), one with a smooth acceleration and another one with a smooth deceleration.
There are 4 arrays because there are 2 different accelerations and 2 different decelerations.
To make it work I used variables to pick the different items inside the arrays and use them as a percentage of acceleration or deceleration.
I think at the end I only used the array called "ease350", then I just used the math to make it work with the acceleration and the deceleration.
Unfortunately you need to track all the places where I inserted thoses variables, because you need to take into account all the different situation where you want your fade out animation to be reset.
Hopefully someone else can give you an easier way to do it, I knew that you were going to ask me explanation about the code , but unfortunately it's all what I have.
Also, if you want to run my layout, you will have to comment line 235, otherwise it will try to launch an external script at start and every time you change your game selection.
So basically I created my own animation system.
The "// ANIMATION CURVES" section is the creation of different arrays with a list of values from 0 to 100 (to be used as percentage), one with a smooth acceleration and another one with a smooth deceleration.
There are 4 arrays because there are 2 different accelerations and 2 different decelerations.
To make it work I used variables to pick the different items inside the arrays and use them as a percentage of acceleration or deceleration.
I think at the end I only used the array called "ease350", then I just used the math to make it work with the acceleration and the deceleration.
Unfortunately you need to track all the places where I inserted thoses variables, because you need to take into account all the different situation where you want your fade out animation to be reset.
Hopefully someone else can give you an easier way to do it, I knew that you were going to ask me explanation about the code , but unfortunately it's all what I have.
Also, if you want to run my layout, you will have to comment line 235, otherwise it will try to launch an external script at start and every time you change your game selection.