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
» WHAT IS YOUR FAVORITE TYPE OF STAGE?????
by Mazemerald Today at 12:12 am

» Chris Redfield from Resident Evil UPDATE!!!
by yolomate Yesterday at 11:01 pm

» lightning from final fantasy released.
by armin_iuf Yesterday at 10:08 pm

» Marvel's X-23 ( Laura Kenny) by Volzilla & Skhsato123
by fede de 10 Yesterday at 9:08 pm

» My Spriteworks
by Doom Yesterday at 8:58 pm

» ANIMATED STAGES MAZEPACK 5 - CPS2 STAGES wip
by Mazemerald Yesterday at 6:57 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 : 145
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
borewood2013

avatar

Posts : 5025
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 : 145
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
borewood2013

avatar

Posts : 5025
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
 
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: