The Mugen Multiverse
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome!!! - Bienvenidos!!! - ( We hope you will get involved in the MMV Community which is dedicated to having fun with Mugen ) - Bienvenidos!!! - Welcome!!!
 
PortalHomeFAQMemberlistLatest imagesUsergroupsSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» I need help ripping a specific sprite art from Asura Buster
Scaling problem Emptyby crosspotts1.0 Today at 10:05 am

» MUGEN MULTIVERSE DISCORD SERVER BEING ATTACK BY PORN BOTS WE NEED HELP
Scaling problem Emptyby OldGamer Today at 9:01 am

» SFA2 "Lost Island - Japan" Akuma (Gouki) Stage V-2.0 For MUGEN 1.1 and IKEMEN-Go
Scaling problem Emptyby Shining Yesterday at 11:13 pm

» MegaMan X Release Iris Update
Scaling problem Emptyby Nexus Gaming Yesterday at 9:37 am

Special Features at MMV




Chat on MMV w/ Discord

Video Content Creation Reference
Search
 
 

Display results as :
 
Rechercher Advanced Search

 

 Scaling problem

Go down 
2 posters
AuthorMessage
BlueSpiderX

BlueSpiderX


Posts : 1115
Join date : 2013-05-30
Age : 23
Location : the meme dimension

Scaling problem Empty
PostSubject: Scaling problem   Scaling problem EmptyOctober 1st 2017, 1:35 am

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. Scaling problem 629558521 Scaling problem 2649099129
Back to top Go down
Werewood

Werewood


Posts : 5691
Join date : 2014-08-11

Scaling problem Empty
PostSubject: Re: Scaling problem   Scaling problem EmptyOctober 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.  Scaling problem 629558521 Scaling problem 2649099129

This is the most straight-forward MUGEN way Arrow :
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 Arrow :
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....... Neutral
Back to top Go down
https://onedrive.live.com/?cid=7DB65F02B0BBD12E
BlueSpiderX

BlueSpiderX


Posts : 1115
Join date : 2013-05-30
Age : 23
Location : the meme dimension

Scaling problem Empty
PostSubject: Re: Scaling problem   Scaling problem EmptyOctober 1st 2017, 6:42 pm

Thanks ! Very Happy
God this is confusing Scaling problem 311127478
Back to top Go down
BlueSpiderX

BlueSpiderX


Posts : 1115
Join date : 2013-05-30
Age : 23
Location : the meme dimension

Scaling problem Empty
PostSubject: Re: Scaling problem   Scaling problem EmptyOctober 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. Very Happy
I'll make a shrinking version of my equation if someone wants to use it.
Back to top Go down
Werewood

Werewood


Posts : 5691
Join date : 2014-08-11

Scaling problem Empty
PostSubject: Re: Scaling problem   Scaling problem EmptyOctober 2nd 2017, 1:08 pm

How cool you know better mathematics! Scaling problem 670481599
Back to top Go down
https://onedrive.live.com/?cid=7DB65F02B0BBD12E
BlueSpiderX

BlueSpiderX


Posts : 1115
Join date : 2013-05-30
Age : 23
Location : the meme dimension

Scaling problem Empty
PostSubject: Re: Scaling problem   Scaling problem EmptyOctober 3rd 2017, 2:14 am

Nah. I actually suck in school Scaling problem 311127478
Back to top Go down
Sponsored content





Scaling problem Empty
PostSubject: Re: Scaling problem   Scaling problem Empty

Back to top Go down
 
Scaling problem
Back to top 
Page 1 of 1
 Similar topics
-
» fighter factory scaling issue. help would be appreciated.
» RotSprite Tool - Rotating and Scaling sprites - the easy way
» Screenpack coding help needed - Scaling the 9000,0 ports
» Prefect sprite re-sizing/re-scaling tool: PixelPunch
» a little problem

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen Related :: Mugen Help-
Jump to: