YesNoOk
avatar

Bind to target... (Read 665 times)

Started by dark byakuya, October 31, 2010, 08:33:42 pm
Share this topic:
Bind to target...
#1  October 31, 2010, 08:33:42 pm
  • **
  • O.O!!!! おまえわアルファですか?
    • USA
im making an attack that my char attacks one side the enemy to the other, what im trying to do
is to bind the enemy in the center the attack  every  time i use this move, i put p2 in  a custom state
 and used Bind to target in my state but it won't work is there something  im doing wrong? or is there some other way? to achive this.
Oh no alpha is gonna blooow!! EVERYONE PANIC!!!!!!!!!!
Re: Bind to target...
#2  October 31, 2010, 09:22:27 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
You probably want to use targetbind instead of bindtotarget. Read up on the difference in the docs. Otherwise, post your code.
Re: Bind to target...
#3  October 31, 2010, 09:55:19 pm
  • **
  • O.O!!!! おまえわアルファですか?
    • USA
here ya go...

[Statedef 3062]
type    = S
movetype= A
physics = S
juggle  = 15
velset = 0,0
anim = 3050
ctrl = 0
sprpriority = 2




[State 0, TargetState]
type = TargetState
trigger1 =time=0
value = 3003
ID = -1
;ignorehitpause =
;persistent =



[State 0, BindToTarget]
type = BindToTarget
trigger1 =time=1
time = 105
ID = -1
pos=-50,0
postype=mid









[State 3000, 5]
type = HitDef
trigger1 = animelemtime(1)>=0
attr = S, HA
animtype  = Hard
damage    = 9,9
getpower  = 50
priority  = 6
guardflag = MA
pausetime = 1,94
sparkno= 1
sparkxy = -10,-80
hitsound   = s200,random%2
guardsound = 6,0
ground.type = Low
ground.slidetime = 0
ground.hittime  = 0


 [State 0, ]
type = ChangeState
trigger1 = Time =320
value = 0
ctrl = 1
Oh no alpha is gonna blooow!! EVERYONE PANIC!!!!!!!!!!
Last Edit: October 31, 2010, 10:01:45 pm by dark byakuya
Re: Bind to target...
#4  October 31, 2010, 11:02:32 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
Are you trying to bind an enemy to a position? Or are you trying to bind your character to a position?
Re: Bind to target...
#5  October 31, 2010, 11:12:30 pm
  • ****
  • Busy, busy, busy
    • www.trinitymugen.net/forum/index.php
If you are trying to switch sides with him dont you need another bindtotarget to position you on the other side? I might be wrong on that.

You can also use a regular targetbind and disable playerpush and just swap sides that way

-
http://www.Trinitymugen.net/Hosted/CFJ2/
-
thanks again Vans/Jesuszilla!
Re: Bind to target...
#6  November 01, 2010, 12:04:40 am
  • **
  • O.O!!!! おまえわアルファですか?
    • USA
im trying  to bind p2 in the center of the attack since im attacking from one side to the other of p2
Oh no alpha is gonna blooow!! EVERYONE PANIC!!!!!!!!!!
Re: Bind to target...
#7  November 01, 2010, 08:20:02 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You have said you're using a custom state? If p2 doesn't need to move until the very end.

[mcode]
type = posfreeze
trigger1 = 1
[/mcode]

And don't put any velocity on the players hits until the end of the attack. Last hit takes you out of the custom state and allows vel to occur.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.
Re: Bind to target...
#8  November 04, 2010, 08:11:35 pm
  • **
  • O.O!!!! おまえわアルファですか?
    • USA
thanks!
Oh no alpha is gonna blooow!! EVERYONE PANIC!!!!!!!!!!