BlueSpiderX
Posts : 1115 Join date : 2013-05-30 Age : 23 Location : the meme dimension
| |
Werewood
Posts : 5691 Join date : 2014-08-11
| Subject: Re: Scaling problem October 1st 2017, 9:49 am | |
| - BlueSpiderX wrote:
- How to make a helper begin at 0.5(half) scale grow to 0.75(3/4) scale using AngleDraw ? I tried a few equations but I got confused.
This is the most straight-forward MUGEN way : - Code:
-
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [-1,1] ; 1 MUGEN game tick interval for an example here... scale = 0.50,0.50 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [2,3] ; 1 MUGEN game tick interval for an example here... scale = 0.51,0.51 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [4,5] ; 1 MUGEN game tick interval for an example here... scale = 0.52,0.52 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [6,7] ; 1 MUGEN game tick interval for an example here... scale = 0.53,0.53 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [8,9] ; 1 MUGEN game tick interval for an example here... scale = 0.54,0.54 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [10,11] ; 1 MUGEN game tick interval for an example here... scale = 0.55,0.55 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [12,13] ; 1 MUGEN game tick interval for an example here... scale = 0.56,0.56 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [14,15] ; 1 MUGEN game tick interval for an example here... scale = 0.56,0.56 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [16,17] ; 1 MUGEN game tick interval for an example here... scale = 0.57,0.57 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [18,19] ; 1 MUGEN game tick interval for an example here... scale = 0.58,0.58 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [20,21] ; 1 MUGEN game tick interval for an example here... scale = 0.59,0.59 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [22,23] ; 1 MUGEN game tick interval for an example here... scale = 0.60,0.60 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [24,25] ; 1 MUGEN game tick interval for an example here... scale = 0.61,0.61 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [26,27] ; 1 MUGEN game tick interval for an example here... scale = 0.62,0.62 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [28,29] ; 1 MUGEN game tick interval for an example here... scale = 0.63,0.63 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [30,31] ; 1 MUGEN game tick interval for an example here... scale = 0.64,0.64 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [32,33] ; 1 MUGEN game tick interval for an example here... scale = 0.65,0.65 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [34,35] ; 1 MUGEN game tick interval for an example here... scale = 0.66,0.66 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [36,37] ; 1 MUGEN game tick interval for an example here... scale = 0.67,0.67 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [38,39] ; 1 MUGEN game tick interval for an example here... scale = 0.68,0.68 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [40,41] ; 1 MUGEN game tick interval for an example here... scale = 0.69,0.69 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [42,43] ; 1 MUGEN game tick interval for an example here... scale = 0.70,0.70 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [44,45] ; 1 MUGEN game tick interval for an example here... scale = 0.71,0.71 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [46,47] ; 1 MUGEN game tick interval for an example here... scale = 0.72,0.72 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [48,49] ; 1 MUGEN game tick interval for an example here... scale = 0.73,0.73 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [50,51] ; 1 MUGEN game tick interval for an example here... scale = 0.74,0.74 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time = [52,53] ; 1 MUGEN game tick interval for an example here... scale = 0.75,0.75 ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time >= 54 ; if you want it to stay scaling to 0.75 afterwards.... scale = 0.75,0.75 ignorehitpause = 1 And I believe there must be a shorter version that involves using some mathematics formula.........something like this : - Code:
-
[State ####, AngleDraw] type = AngleDraw trigger1 = Time <= 53 ; still a MUGEN game tick interval for an example here... scale = 0.50+(0.01*(Time/2.12)),0.50+(0.01*(Time/2.12)) ignorehitpause = 1
[State ####, AngleDraw] type = AngleDraw trigger1 = Time >= 54 ; if you want it to stay scaling to 0.75 afterwards.... scale = 0.75,0.75 ignorehitpause = 1 * sorry my mathematics is really bad........that above mathematics formula barely works....... | |
|
BlueSpiderX
Posts : 1115 Join date : 2013-05-30 Age : 23 Location : the meme dimension
| Subject: Re: Scaling problem October 1st 2017, 6:42 pm | |
| Thanks ! God this is confusing | |
|
BlueSpiderX
Posts : 1115 Join date : 2013-05-30 Age : 23 Location : the meme dimension
| Subject: Re: Scaling problem October 2nd 2017, 7:51 am | |
| GUYS I FIGURED IT OUT [State ####, AngleDraw] type = AngleDraw trigger1 = 1 scale = A+(time*B),C+(time*D) Where A & C : Start scale B & D : A number that if multiplied with the state duration will be equal to a number that if summed with the start scale will be equal to the final scale C & D is used in case you want the x and y scale to be different. If not, just use the x scale again. Example: In my case, I want the start scale to be 0.5 and the final scale is 0.75 [State ####, AngleDraw] type = AngleDraw trigger1 = 1 scale = 0.5+(time*0. 0083),0.5+(time*0. 0083) Since my state will end in 30 ticks, my state's final scale will be 0.75 in the 30th tick because: 0.5+(time*0.0083) =0.5+(30*0.0083) =0.5+0.25 =0.75 0.0083 is earned from: Start scale+X*State duration = Final scale In my case, Start scale = 0.5; State duration = 30; Final scale = 0.75; X is what number to multiply with the state time to earn the final scale 0.5+X*30 = 0.75 X*30 = 0.75 - 0.5 X*30 = 0.25 X = 0.25/30 X = 0.0083 Sorry for the math lesson. :p Special thanks to Borewood for triggering my brain with his equation. I came up with mine by looking at his. I'll make a shrinking version of my equation if someone wants to use it. | |
|
Werewood
Posts : 5691 Join date : 2014-08-11
| Subject: Re: Scaling problem October 2nd 2017, 1:08 pm | |
| How cool you know better mathematics! | |
|
BlueSpiderX
Posts : 1115 Join date : 2013-05-30 Age : 23 Location : the meme dimension
| Subject: Re: Scaling problem October 3rd 2017, 2:14 am | |
| Nah. I actually suck in school | |
|
Sponsored content
| Subject: Re: Scaling problem | |
| |
|