collapse

Author Topic: Finish BG helper leaves a black box in screen? #noob questions  (Read 676 times)

0 Members and 1 Guest are viewing this topic.

Offline swanky

  • Initiate
  • **
  • Posts: 11
  • Last Login:March 06, 2024, 04:59:41 PM
    • Email
Finish BG helper leaves a black box in screen? #noob questions
« on: January 06, 2021, 12:02:25 PM »
So being the idiot that I am I wanted to add some Hyper Combo Finish BGs to Mystique (with their AI patch) - for personal usage, of course, not to be redistributed.
Idea:
Having a check in Statedef -2 spawn a helper that removes itself when Roundstate >3, so that it doesn't get spawned multiple times (and thus spawns multiple sound effects and explods).
So the order in which things are progressing is HyperBG gets cancelled into HyperBG glass breaking BG helper which removes itself with !time. Hyper Combo Finish BG helper gets spawned in, lasting until end of roundstate 3.

I had to change the Hyper BG defs in order to have that background get removed when the hyper finish background triggers, which is working.
[State 40001, Glass Break]
type = ChangeState
trigger1 = root, stateno !=[3000,3302]
trigger2 = WinKO
trigger3 = p2life = 0 && roundstate = 2
trigger4 = root, NumProjID(3010) >= 1 && WinKO
value = stateno+1

It's only mostly working, however, once the explod gets removed I have a big, transparent box in the background. Having the helper destroyed by a time trigger may spawn the helper again when Mystique is in her animation for a long period of time (like her Statedef 3000 hyper), and I don't want that. Now... how do I set that right?

Thanks for helping a rookie :>



[State -2, Winhelper]
type = helper
triggerall = NumHelper(4001)=0
triggerall = ((stateno = [2999, 3302]) || (Numhelper(3101) = 1) || (Numhelper(3102) = 1))
trigger1 = WinKO
trigger2 = p2life = 0 && roundstate = 3
name = "WinKO BG"
ID = 4001
stateno = 4001
pos = 0,0
postype = left
facing = 1
keyctrl = 0
ownpal = 0
supermovetime = 9999
pausemovetime = 9999
ignorehitpause = 1



[Statedef 4001]
type    = S
movetype= A
physics = N
anim = 9999 ;blank animation


[State 4000, AvX No BG]
type = assertspecial
trigger1 = time <= 120
flag = noBG
flag2 = noFG

[State 4000, PlaySND]
type = PlaySnd
trigger1 = time = 0
value = 1500, 25

[State 4000, Background]
type = Explod
trigger1 = time = 0
trigger2 = numexplod(4001) = 0
anim = 12700
ID = 4001
pos = 0,0
postype = left  ;p2,front,back,left,right
removetime = -2 ;doesn't get removed correctly at the end of its animation, interestingly, even though it's non looping in FF
pausemovetime = -1
supermovetime = -1
scale = .85, 1
sprpriority = -5
ownpal = 1
ignorehitpause = 1
bindtime = -1

[State 4000]
type = removeExplod
trigger1 = time > 120
ID = 4001

[State 40003, DestroySelf]
type = DestroySelf
trigger1 = roundstate > 3
« Last Edit: January 06, 2021, 12:12:23 PM by swanky »



Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

Neon Light Force Demo by O Ilusionista
[May 06, 2024, 11:54:23 AM]


D2TD VS Showcase Thread by D2TD
[May 05, 2024, 10:08:50 AM]


Classic VS : Athena by ELECTRO
[May 02, 2024, 09:44:33 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[April 21, 2024, 12:09:20 PM]


Ultimate E. Honda + stage by ELECTRO
[April 18, 2024, 09:47:24 PM]


Sunset Beach (1.1 Only/AIGS) by Vegaz by LightFlare
[April 16, 2024, 06:55:00 PM]


Wonder Twins 2.0 by brucewayne74, Shining and Skhsato123 by brucewayne74
[April 05, 2024, 06:07:48 PM]


X-Men Training Room (Bright & Dark) Stage 1.1 & 1.0 by MatreroG
[April 05, 2024, 10:55:29 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[April 01, 2024, 11:03:03 PM]


Get permabanned! VoteKick gets fighters banned in MUGEN! (April Fools 2024) by GTFoxN6Y
[April 01, 2024, 05:25:31 PM]

* IMT Calendar

May 2024
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4
5 6 [7] 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal