A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» Let's make your own meaning of "M.U.G.E.N"!
by volzzilla Today at 3:53 pm

» Riddick
by volzzilla Today at 3:53 pm

» Axel Stone by Nexus Games/Shin Mako & SeanAlty - 100 Youtube Subs Release
by malevka1 Today at 2:47 pm

» TK's Lets Play: Demon Hunter Mai
by TK830515 Today at 1:07 pm

» Tekken chuchoryu proyect
by Mistah Jorge Today at 12:52 pm

» I need help.. [League of Legends PROJECT]
by Mistah Jorge Today at 12:30 pm

Special Features at MMV








Share | 
 

 Helper's DestroySelf code

View previous topic View next topic Go down 
AuthorMessage
dragonrod



Posts : 42
Join date : 2013-11-26

PostSubject: Helper's DestroySelf code   April 2nd 2015, 9:57 pm

Hello guys!!!

I have an question... (otherwise I wouldn't be here... Razz )

I have this Helper DestroySelf code:
Code:
[State 2005, DestroySelf]
type = DestroySelf
trigger1 = AnimTime = 0

which does the helper disappears when the animation ends, of course, but, what should I add to this code in order to make it also disappears when the player get hit.

Also, I'm using it on a Hyper move, do you think it's necessary, or it could be "invincible" during the move? (just asking in order to make the char better, I still need to know the code... XD )

Waiting for an answer!! Thanks for all!!!
Back to top Go down
View user profile
borewood2013



Posts : 3162
Join date : 2014-08-11

PostSubject: Re: Helper's DestroySelf code   April 3rd 2015, 9:23 am

>> which does the helper disappears when the animation ends, of course, but, what should I add to this code in order to make it also disappears when the player get hit.
"the player" I assume you referred to Player 1 (Root), the one who makes call to this Helper.


Code:
[State 2005, DestroySelf]
type = DestroySelf
trigger1 = AnimTime = 0
trigger2 = Root, MoveType = H   ;this shall be enough
trigger3 = Root, StateNo = [5000,5999]   ;this is making things safe
trigger4 = Root, StateNo != 2000    ;this is for when Player 1 (Root) is not doing the hyper move anymore, assuming the hyper move state number is 2000
trigger5 = Time >= 300   ;this is making things more safe (assume the hyper move time occupies 300 game ticks)


>> Also, I'm using it on a Hyper move, do you think it's necessary, or it could be "invincible" during the move?
Well if you ask me then I say "it depends".
- If only the Player 1 (Root) is doing the actual attack and the Helper is there for a "decoration" only, then the Helper can be invincible all the time.
- If both the Player 1 (Root) and the Helper are doing the actual attack and the Helper works like a real player (i.e. has a body and limbs) then the Helper can be invincible, not all the time, but some specific period of time (i.e. normally the short time at the beginning).
  ** please remember to use HitOverride or ChangeState to take the Helper to its get-hit state
       if you plan to make it hit-able by enemy (aka P2)
- If both the Player 1 (Root) and the Helper are doing the actual attack and the Helper works like a VFX (i.e. a long beam or a fireball) then the Helper can be invincible all the time.
- If both the Player 1 (Root) and the Helper are doing the actual attack and the Helper is used to throw the enemy (aka P2), then the Helper should be invincible all the time.

There are actually much more situation such as enemy (aka P2)'s state status or screen boundary, whichever it is and shall fit your MUGEN character's style and game play. study
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
 
Helper's DestroySelf code
View previous topic View next topic Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
The Mugen Multiverse :: Mugen :: Mugen Help-
Jump to: