A place to have fun with Mugen
 
PortalHomeFAQMemberlistSearchRegisterComic WIP TrackerDownloadsLog inChat
Website Navigation Help
Translate the Website
Log in
Username:
Password:
Log in automatically: 
:: I forgot my password
Latest topics
» ????????????????????????????
by SIRALEXBABY Today at 10:14 pm

» EDIT WONDER-WOMAN NEW 52 CSP..PANTS AND BOOTS..
by SIRALEXBABY Today at 8:21 pm

» Spector Palettes Episode II
by SIRALEXBABY Today at 8:01 pm

» Project X Zone 2 Voice rips ?
by testament Today at 7:19 pm

» New Yolomate palettes part 2, Just when you thought it was safe to go back in the forum.
by Shining Today at 6:14 pm

» The MMV News
by yolomate Today at 5:01 pm

Special Features at MMV







Chat on MMV w/ Discord


Share | 
 

 Comparing distance against another helper?

View previous topic View next topic Go down 
AuthorMessage
Mega_Man

avatar

Posts : 146
Join date : 2016-01-23

PostSubject: Comparing distance against another helper?   June 3rd 2017, 2:19 pm

So I'm trying to make this one attack where if it's in a certain position between one helper and another and the player presses X, then it will do damage to the opponent. I wonder, how can I have the distance between two helpers detected?
Back to top Go down
View user profile
Werewood

avatar

Posts : 5654
Join date : 2014-08-11

PostSubject: Re: Comparing distance against another helper?   June 5th 2017, 5:59 am

Assume your MUGEN Player has two (2) MUGEN Helpers => Helper(1234) and Helper(5678)...  study

The distance of Helper(1234) and Helper(5678) might be gotten this MUGEN way Arrow :
Code:
Abs(Helper(1234), Pos X - Helper(5678), Pos X)

* you have to use the MUGEN Trigger NumHelper() to check for Helper(1234) and Helper(5678) in advance...
* the use of the MUGEN Trigger Abs() is to make sure the distance gotten is a positive number.... Wink
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Mega_Man

avatar

Posts : 146
Join date : 2016-01-23

PostSubject: Re: Comparing distance against another helper?   June 5th 2017, 7:39 am

borewood2013 wrote:
Assume your MUGEN Player has two (2) MUGEN Helpers => Helper(1234) and Helper(5678)...  study

The distance of Helper(1234) and Helper(5678) might be gotten this MUGEN way Arrow :
Code:
Abs(Helper(1234), Pos X - Helper(5678), Pos X)

* you have to use the MUGEN Trigger NumHelper() to check for Helper(1234) and Helper(5678) in advance...
* the use of the MUGEN Trigger Abs() is to make sure the distance gotten is a positive number.... Wink

Very useful! Thanks. The character right now just assumes the helper position with the root distance. I think this is fine because the character never really moves during the attack anyways.
Back to top Go down
View user profile
Werewood

avatar

Posts : 5654
Join date : 2014-08-11

PostSubject: Re: Comparing distance against another helper?   June 5th 2017, 4:56 pm

@Mega_Man wrote:
borewood2013 wrote:
Assume your MUGEN Player has two (2) MUGEN Helpers => Helper(1234) and Helper(5678)...  study

The distance of Helper(1234) and Helper(5678) might be gotten this MUGEN way Arrow :
Code:
Abs(Helper(1234), Pos X - Helper(5678), Pos X)

* you have to use the MUGEN Trigger NumHelper() to check for Helper(1234) and Helper(5678) in advance...
* the use of the MUGEN Trigger Abs() is to make sure the distance gotten is a positive number.... Wink

Very useful! Thanks. The character right now just assumes the helper position with the root distance. I think this is fine because the character never really moves during the attack anyways.

Some MUGEN creators/authors suggest to use "Abs(???, Pos X/Y - ???, Pos X/Y)" for all MUGEN X/Y distances between everything, rather than those native X/Y-distance-related MUGEN Triggers.........I guess it depends on some MUGEN cases though.... Neutral
Back to top Go down
View user profile https://onedrive.live.com/?cid=7DB65F02B0BBD12E
Sponsored content




PostSubject: Re: Comparing distance against another helper?   

Back to top Go down
 
Comparing distance against another helper?
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: