YesNoOk
avatar

[SOLVED] Helper binding with parent (Read 166 times)

Started by O Ilusionista, July 31, 2011, 04:55:13 pm
Share this topic:
[SOLVED] Helper binding with parent
New #1  July 31, 2011, 04:55:13 pm
  • *****
  • 11 years of MFG and counting :)
    • Brazil
    • www.brazilmugenteam.com
hi guys.

I have a char where a helper spans another helper to make an attack, and I would like to make the child helper to return to where the parent helper is.

The problem is that the parent helper is moving on a circular motion, and I would like to make the child helper, after some time, to be back EXACTLY where the parent helper is, "chasing" the right position of the parent helper.

I've tried this, but its isn't what I need:

Quote
[State 0, VelSet]
type = VelSet
trigger1 = Time > 120
x = pos X/(parent,pos X)
y = pos Y/(parent,pos Y)

Any help?
Last Edit: August 06, 2011, 07:56:23 am by _K.o.W_
Re: Helper binding with parent
#2  July 31, 2011, 05:09:36 pm
  • *****
  • 11 years of MFG and counting :)
    • Brazil
    • www.brazilmugenteam.com
I think I got it, but not perfectly:

Quote
[State 3]
type = Velset
trigger1 = Time > 120
x = 2.75*ceil((ParentDist X)/10)
y = 2.75*ceil((ParentDist Y)/10)

[State 0, DestroySelf]
type = DestroySelf
trigger1 = Time > 120 && ParentDist X = [-5,5]

2OS

Re: Helper binding with parent
New #3  August 01, 2011, 12:52:19 am
  • ****
  • Ich schicke dich zur HOELLE ! ¡ ! ¡
    • Egypt
    • deuceovspadez.webs.com/
[State 2OS]
type=velset
trigger1=time>120
x=parentdist x/var(2)
y=parentdist y/var(2)

[State 2OS]
type=varset
trigger1=!time
var(2)=10

[State 2OS]
type=varadd
trigger1=time>360&&!(time%5)&&var(2)!=1
var(2)=-1


""time>360"" being ""after some time"", ""!(time%5)"" being the ""chasing"" rate, once var(2) hits 1, that is the absolute equivalent to ""bindtoparent=0,0"", aka ""EXACTLY where the parent helper is"".

If I'm totally off, I hope this at least gives you ideas.


[ 052012 ] Inazumachi 181/256  /  deviantART   /  2OS Grafphicsxz  Dead Anims ( Orochi/Mizuchi )  /  608's FX Volume 3
Last Edit: August 01, 2011, 12:58:46 am by 2OS