YesNoOk
avatar

TargetBind Issue (Read 683 times)

Started by All-Star Platinum, January 16, 2022, 08:54:39 pm
Share this topic:
TargetBind Issue
#1  January 16, 2022, 08:54:39 pm
  • ***
  • Future Funk Punk
    • Canada
Hello,

So I'm fixing up an old super which P1 grabs P2  and holds them before an explosion goes off. The move works perfectly fine but for some reason when I attempt to edit the TargetBind state to make the char appear closer to P1's hand both characters fly horizontally to the left side of the screen. When I change the x and y axis to be further away, both character's remain still. (Below is the code I'm talking about). Any information would be greatly appreciated. Thanks.

CODE:

;Got Your Face (Hold Opponent)3006+random%2
[Statedef 3005]
type    = S
movetype= A
physics = N
anim = 3005
poweradd = 60
sprpriority = 1

[State 3005, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = nobardisplay
flag2 = nomusic

;[State 3005, killa Sound]
;type = PlaySnd
;trigger1 = time = 130
;value = s6, 34

[State 3005, Explod]
type = Helper
trigger1 = time = 140
helpertype = normal ;player
name = "TimeWarp"
ID = 3005
stateno = 3006
pos = 0, -90
postype = p2    ;p2,front,back,left,right
facing = 1
size.xscale = 3
size.yscale = 2
sprpriority = 2

[State 3005, Super D]
type = NotHitBy
trigger1 = AnimElem = 3
value = , NA, SA, AT
time = 6

;[State 3005, Grab Sound]
;type = PlaySnd
;trigger1 = AnimElem = 1
;value = 1, 1

;[State 3005, Grab Sound]
;type = PlaySnd
;trigger1 = Time = 1
;value = s50, 0+random%7
;volume = 999

[State 3005, TargetBind]               <----------------- I believe this is the issue.
type = TargetBind
trigger1 = AnimElem = 1
time = 150
pos = 15,-12
;pos = 52,-15

[State 3005, State End]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1


-A.S.P
Re: TargetBind Issue
#2  January 16, 2022, 09:19:34 pm
  • ****
  • it's me
  • Bat's a Wrap.
    • Chile
    • koakoa@jabber.org
    • Skype - koakumadevil69
Both characters might be pushing each other, use the playerpush controller to turn it off.
Yeaaaah im shootign ducks wiht the paino
Re: TargetBind Issue
#3  January 16, 2022, 09:36:15 pm
  • ***
  • Future Funk Punk
    • Canada
Something like this? It's still causing both characters to fly towards the left side of the screen.


[State 3005, PlayerPush]
type = PlayerPush
trigger1 = time = 1
value = 1

-A.S.P
Re: TargetBind Issue
#4  January 16, 2022, 09:39:27 pm
  • ***
  • Future Funk Punk
    • Canada
Nvm, I managed to fix it with this

type = PlayerPush
trigger1 = Time >= 0
value = 0

Thank you for your help though.


-A.S.P