YesNoOk
avatar

need help with Transformations again!!! (Read 3915 times)

Started by JudaiZX, December 11, 2009, 02:27:08 am
Share this topic:
need help with Transformations again!!!
#1  December 11, 2009, 02:27:08 am
  • ****
  • hecc
Ok The transformation itself is successfull but when I try to edit the common states there is one common state I'm having trouble overriding, [statedef 50] no matter what I do the transformed character always goes into the jumping animation of the normal, untransformed character even when I have the required animations. Here is the statedef I tried overriding: [Statedef 50]
type    = A
physics = A

[State 50, 1]
type = VarSet
trigger1 = Time = 0
sysvar(1) = 0

[State 50, 2]
type = ChangeAnim
trigger1 = Time = 0
value = ifelse((vel x)=0, 41 , ifelse((vel x)>0, 42, 43)) +var(1)

[State 50, 3]
type = ChangeAnim
trigger1 = Vel y > 0
trigger1 = SelfAnimExist(anim + 3) +var(1)
persistent = 0
value = Anim + 3

Also here is the transformation code if you guys need to see it.
[StateDef 4000]
type = S
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 4000
sprpriority = 2

[State 0, SuperPause]
type = SuperPause
trigger1 = animelem = 1
time = 100
sound = 20,0
pos = 0,0
movetime = 100
darken = 10
p2defmul = 0
unhittable = 1

[State 0, VarSet]
type = VarSet
trigger1 = animtime = 0
v = 1    ;fv = 10
value = 10000

[State 4000, end]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1
youre a fucking meme. another borewood. REIWOOD. SHIP CONFIRMED.
I will force feed Dark Pit right into your ass if we ever play on wi fi.
i think this a dark souls of a mugen forums.
Spoiler, click to toggle visibilty
Last Edit: December 11, 2009, 10:22:10 pm by MARIO/SONICFAN13
Re: need help with Transformations again!!!
#2  December 11, 2009, 02:36:39 am
  • ***
Well, i see you r using the var(1) ; Transformation var. in the code for something you should be using it...maybe thats the prob...I guess you need to do something like this:

[State 50, 2]
type = ChangeAnim
triggerall= var(1)!=10000
trigger1 = Time = 0
value = ifelse((vel x)=0, 41 , ifelse((vel x)>0, 42, 43))

[State 50, 2]
type = ChangeAnim
triggerall=var(1)=10000
trigger1 = Time = 0
value = ifelse((vel x)=0, 41 , ifelse((vel x)>0, 42, 43)) +var(1)

so there, you only use + when the var is equal to 10000 ;transformation I guess...that should work

EDIT: Im not really sure but this may apply to you las code too:

[State 50, 3]
type = ChangeAnim
trigger1 = Vel y > 0
trigger1 = SelfAnimExist(anim + 3) +var(1)
persistent = 0
value = Anim + 3


Re: need help with Transformations again!!!
#3  December 11, 2009, 02:43:28 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
There is no issue with the method he's using. It's more likely to be a problem with his state 50 in some manner.

Try this. Add an explod into your statedef 50. If it shows up when you jump, you're using that state. If it doesn't then there's an issue and it's defaulting back to the data\common1.cns

If this is the case. Rename your common1.cns to common.cns and change it in the .def. Read your error's and come back.


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: need help with Transformations again!!!
#4  December 11, 2009, 10:21:33 pm
  • ****
  • hecc
Thanks cyanide, problem solved.
youre a fucking meme. another borewood. REIWOOD. SHIP CONFIRMED.
I will force feed Dark Pit right into your ass if we ever play on wi fi.
i think this a dark souls of a mugen forums.
Spoiler, click to toggle visibilty