clone problem

Started by Speedy9199, October 09, 2009, 02:46:04 AM

Previous topic - Next topic

Speedy9199

I am trying to code a grapple, the grapple works just fine but the problem is that after the opponent recovers and if the opponent jumps, a clone will appear. How do I prevent this?

The code:

[Statedef 840]
type    = S
movetype= A
physics = N
anim = 840
poweradd = 60
sprpriority = 1

[State 840,3]
type = Explod
trigger1 = AnimElem = 2
postype = p1
pos = 57, -102
anim = 8600
time = 50
ontop = 1
bindtime =  -1
supermovetime = -1
id = 3100
ownpal = 1

[State 840, TargetBind]
type = TargetBind
trigger1 = AnimElem = 1
time = 50
id = -1
pos = 55,-34
persistent = 0

[State 840, 2 TargetBind]
type = TargetBind
trigger1 = AnimElem = 2
time = 10
id = -1
pos = 55,-34
persistent = 0

[State 840, TargetState]
type = TargetState
trigger1 = AnimElem = 1
value = 5050
ID = -1
ctrl = 0
;ignorehitpause =
persistent = 0

[State 840, TargetLifeAdd]
type = TargetLifeAdd
trigger1 = AnimElem = 2
value = -70
ID = -1
kill = 1
absolute = 0
;ignorehitpause =
;persistent =

[State 840, TargetVelSet]
type = TargetVelSet
trigger1 = AnimElem = 3
x = -7
y = 0
ID = -1
;ignorehitpause =
;persistent =


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

;---------------------------------------------------------------------------

[Statedef 850]
type    = A
movetype= H
physics = N
velset = 0,0
ctrl = 0

[State 850, 1]
type = ChangeAnim2
Trigger1 = AnimTime = 0
value = 5050
ctrl = 0
persistent = 0

[State 850, SelfState]
type = SelfState
trigger1 = vel y > 0 && pos y >=0
value = 5100
The answer to most of your mugen problems is to know more math.

How can you get the "feel" of a character if you are only touching a keyboard or controller?!?!

Cyanide

Press ctrl+D twice to view your opponents states. Do the throw and see if the text stays yellow or if it goes white.


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.

Speedy9199

Quote from: Cyanide on October 09, 2009, 05:35:22 AM
Press ctrl+D twice to view your opponents states. Do the throw and see if the text stays yellow or if it goes white.

It stays yellow.
The answer to most of your mugen problems is to know more math.

How can you get the "feel" of a character if you are only touching a keyboard or controller?!?!

Cyanide

Still yellow afterwards? If it is, he's still in your states, and trying to do something that involved one of your explods.


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.