BlueSpiderX
Posts : 1115 Join date : 2013-05-30 Age : 23 Location : the meme dimension
| Subject: A helper stops moving even after given VelSet July 13th 2019, 3:40 am | |
| So i was trying to make a hyper background using helpers and one of the helpers suddenly stops even though there is no code telling it to stop Here's the code - Spoiler:
;--------------------------------------------------------------------------- ;Abs Streaks T (This is the streaks) [Statedef 19430] type = A movetype = A ctrl = 0 anim = 19430 velset = -10,0 sprpriority = -6
[State 0, AssertSpecial] type = AssertSpecial trigger1 = 1 flag = noshadow
[State 0, AngleDraw] type = AngleDraw trigger1 = 1 scale = 0.5, 0.5
[State 0, Trans] type = Trans trigger1 = 1 trans = addalpha alpha = 256, 256
[State 0, VelSet] type = VelSet trigger1 = ishelper trigger2 = BackEdgeDist <= -845 (This helper stopped at that BackEdgeDist) x = -10
[State 0, DestroySelf] type = DestroySelf trigger1 = time = 240 ;--------------------------------------------------------------------------- ;Abs Black BG (This is the black part of the hyper BG. This state is also a helper. This state summons the hyper streaks) [Statedef 23430] type = A movetype = A ctrl = 0 anim = 11430 velset = 0,0 sprpriority = -8
[State 0, AssertSpecial] type = AssertSpecial trigger1 = 1 flag = noshadow
[State 0, AngleDraw] type = AngleDraw trigger1 = 1 scale = 150, 150
[State -2, 0000] (This part summons the helper) type = Helper trigger1 = time = 0 stateNo = 19430 ID = 19430 postype = right pos = 220, -150 ownPal = 1 sprpriority = -6 pauseMoveTime = 99999 superMoveTime = 99999 ignoreHitPause = 1
[State 0, DestroySelf] type = DestroySelf trigger1 = parent, stateno = 433 && parent, time = 65 trigger2 = root , stateno = 433 && root, time > 60
Here is the code of the state that summons the hyper background - Spoiler:
;--------------------------------------------------------------------------- ;Great Kung Fu Palm succ [Statedef 431] type = S movetype= I physics = S anim = 431 ctrl = 0
[State -2, 0000] type = Helper trigger1 = time = 0 stateNo = 17430 ID = 17430 postype = p2 pos = 0, 0 ownPal = 1 pauseMoveTime = 65535 superMoveTime = 65535 ignoreHitPause = 1
[State 0, BlackBG] (This summons the hyper background) type = Helper trigger1 = time = 0 stateno = 23430 ID = 23430 pos = -200, -200 postype = p1 sprpriority = -8 ownpal = 1
[State 0, AssertSpecial] type = AssertSpecial trigger1 = 1 flag = nobardisplay flag2 = nomusic
[State 0, PosSet] type = PosSet trigger1 = time = 47 x = -120 y = 0
[State 0, Turn] type = Turn trigger1 = time = 47 && facing = -1
[State 0, ChangeState] type = ChangeState trigger1 = animtime = 0 value = 433 ctrl = 0
Ask me anything if it's unclear Thanks in advance EDIT : I think i posted this in the wrong section. Admins, please move this to the Mugen Help section. Thank you | |
|
BlueSpiderX
Posts : 1115 Join date : 2013-05-30 Age : 23 Location : the meme dimension
| Subject: Re: A helper stops moving even after given VelSet July 15th 2019, 9:07 am | |
| Update : I fixed the problem
(why do i keep solving my own questions after i posted it)
For some reason, the helper stops moving when it's BackEdgeDist is -1000 (1000 pixels outside the screen from the left edge of screen), and the sprite of the helper is a bit longer than 1000 pixels So i splitted the sprites into 2 halves, one is a helper and the other is an explod attached to the helper
| |
|