News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

question with this..Sprpriority

Started by Jessy, August 17, 2009, 10:06:17 PM

Previous topic - Next topic

Jessy

I talk with [E] about this...
but I wanted to show the code about a doubt with Spriority


[StateDef 356]
type = S
physics = S
anim = 356
ctrl = 0       
sprpriority = -1


[State 356, 1]
type = ChangeState
trigger1 = AnimTime = 0
value = 0

;What happen If I add this?:

[StateDef 356]
type = S
physics = S
anim = 356
ctrl = 0       
sprpriority = -1

[State 356, 1]
type = SprPriority
trigger1 = time = 5
value = -1



[State 356, 2]
type = ChangeState
trigger1 = AnimTime = 0
value = 0





I am think if something in sprpriority change or not...

thanks..
-I hate haters and S.o.S chars.....
-time to migrate from winmugen...

Byakko

...  Well it will change from -1 to -1 ? What are you expecting ? At most, I guess it will be "recalculated" maybe.
What I mean is, you know when the two characters have the same sprpriority. The last one who moved is still "above" the other, even thoguh they have the same, because, well, there has to be one who is "above" the other. So let's say the opponent has the same sprpriority, he just so happens to be "above" you because he moved last, but you "recalculate" yours with this, and even if it's still the same, you end up "above" the opponent.
Maybe. At most.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Jessy

thanks by reply, but ..so..the codes up here are the same, do the same thing..right?
-I hate haters and S.o.S chars.....
-time to migrate from winmugen...

Byakko

... ?? Why would they not ? Do you have examples when it didn't work properly ? Logically (and also according to the docs) yes it should be the same thing.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Rajaa Retired

I think she means that instead of setting the priority, does that sctrl instead work like a poweradd or a lifeadd.

Byakko

Well according to the docs, no, it's still just the same, it sets it to the give value, not add/substract it.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.

Jessy

-I hate haters and S.o.S chars.....
-time to migrate from winmugen...