YesNoOk
avatar

Final boss change state (Read 3102 times)

Started by lordmikehnk, January 31, 2023, 09:53:23 pm
Share this topic:
Final boss change state
New #1  January 31, 2023, 09:53:23 pm
    • Romania
    • https://lordmikehnk.blogspot.com/
Hello, i hope everybody at MFG is doing fine.
I have decided to return to mugen after 10 years(?!).
I need some help to finish a project i started around 2011, but can't figure it out on my own.

Basically i want to change the position the character has when the boss is killed (by any move). i want them both to stand on opposite corners and p1 to be in anim 0 while the boss enters his special state.

Here is what i am using now
Code:
[Statedef 50081]
type = S
movetype = I
physics = N
anim = 0
ctrl = 0
velset = 0,0

[State 0, AssertSpecial]
type = AssertSpecial
trigger1 = Time = [0,2400] ;<- 40 seconds
flag = roundnotover
ignorehitpause = 1

[State 0, NotHitBy]
type = NotHitBy
trigger1 = 1
value = SCA
ignorehitpause = 1

[State 0, ChangeState]
type = ChangeState
trigger1 = Time >= 2400
value = 0
ctrl = 1

the code i use now makes p1 remain in his previous position when matchover=1.
and if that position is next to the boss, they will overlap when the boss enters his death animation.
i am pretty sure i need a PossAdd or something similar, but i can't bring myself to figure it out.
Any help would be greatly appreciated.
Thank you.

     Posted: February 01, 2023, 09:03:30 pm
I figured it out.
Code:
[state a]
type = posset
trigger1 = 1;time = 0
x = 0
y = 0

[state a]
type = posadd
trigger1 = 1;time = 0
x = -500

This piece of code will send p1 across the screen.
Now the problem is when. I want to do it right after he kills the boss, but it happens about midway through the death animation of the boss. I even coded a flashing screen animation, but that too triggers as late as he moves...any ideas?
Last Edit: February 01, 2023, 09:03:30 pm by lordmikehnk