mugen chars, rare characters
Mugen | CHAT | Point to Point Equation - Forum | Registration | Login
[New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Point to Point Equation
BabricogurlDate: Friday, 2009-11-27, 9:46 AM | Message # 1
Hero
Group: contributor
Messages: 429
Awards: 3
Reputation: 7
Reproofs: 0%
Status: Offline
---------------------------------------------------------------------------
This is an equation that can be used to move an object from one point to
another, according to the relative destination, ie. the opponent.

An example for such a use for this equation is to shoot a projectile
directly at the opponent. This does not include homing capabilities.
---------------------------------------------------------------------------

This example shows how to move the character or such, to move directly to
the opponent in a straight path using a VelSet.

This is used to set the velocities, where "10" is the base velocity overall.

[State ****: Null]
type = Null
trigger1 = (!Time)
trigger1 = (FVar(0) := (P2Dist X * 10) / (Exp(0.5*ln((P2Dist X * P2Dist X) + (P2Dist Y * P2Dist Y)))))
trigger1 = (FVar(1) := (P2Dist Y * 10) / (Exp(0.5*ln((P2Dist X * P2Dist X) + (P2Dist Y * P2Dist Y)))))

[State ****: VelSet]
type = VelSet
trigger1 = (Whatever)
x = FVar(0)
y = FVar(1)


http://www.youtube.com/user/TheBabricogurl
 
MGSSJ2Date: Tuesday, 2010-01-26, 8:44 AM | Message # 2
Mystic Coder
Group: contributor
Messages: 2954
Awards: 5
Reputation: 47
Reproofs: 0%
Status: Offline
Quote (Babricogurl)
trigger1 = (!Time)
trigger1 = (FVar(0) := (P2Dist X * 10) / (Exp(0.5*ln((P2Dist X * P2Dist X) + (P2Dist Y * P2Dist Y)))))
trigger1 = (FVar(1) := (P2Dist Y * 10) / (Exp(0.5*ln((P2Dist X * P2Dist X) + (P2Dist Y * P2Dist Y)))))

What the... Too complicated for me wacko


 
buyDate: Wednesday, 2010-01-27, 4:12 PM | Message # 3
Angel
Group: Administrators
Messages: 1243
Awards: 2
Reputation: 14
Status: Offline
Quote
Too complicated for me

Agree.

 
MGSSJ2Date: Tuesday, 2010-04-06, 8:27 AM | Message # 4
Mystic Coder
Group: contributor
Messages: 2954
Awards: 5
Reputation: 47
Reproofs: 0%
Status: Offline
Finally I was able to understand it a bit.
Is the same as saying this:

[State ****, VarSet]
type = VarSet
trigger1 = time = 0
v = 0
value = (P2Dist X * 10) / (Exp(0.5*ln((P2Dist X * P2Dist X) + (P2Dist Y * P2Dist Y))))

[State ****, VarSet]
type = VarSet
trigger1 = time = 0
v = 1
value = (P2Dist Y * 10) / (Exp(0.5*ln((P2Dist X * P2Dist X) + (P2Dist Y * P2Dist Y)))))

"!Time" is equal to "time = 0" and ":=" means that you're setting the var's value.
However I still don't get what the "Exp" and "In" things are for...


 
Sou-BotDate: Tuesday, 2010-04-06, 1:52 PM | Message # 5
Angel
Group: contributor
Messages: 1192
Awards: 4
Reputation: 12
Reproofs: 100%
Status: Offline
Wut da F***K is this hhhhhhhhhhhhhhhhhhhh
i feel so tupid



If anyone felt insulted or attacked by someone here then tell me bout it and show me some proofs and ill see what i can do, we wanna keep it friendly here
 
  • Page 1 of 1
  • 1
Search:

Copyright MyCorp © 2024 Create a free website with uCoz