how to detect the nearest helper?
|
|
Omegaxis12 | Date: Sunday, 2012-06-03, 5:20 PM | Message # 1 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| i have 5 helpers with the same attribute but with different ids( or if needed i can make the helpers have the same id)=Helper A and another helper that must travel to the nearest helper of the first 5 helper= Helper B
what i need to know is how to detect the nearest helper A from the helper B for helper B travel to it
it's like helper B is traveling to the helper As
Message edited by Omegaxis12 - Sunday, 2012-06-03, 5:25 PM |
|
| |
sgn_15 | Date: Sunday, 2012-06-03, 7:43 PM | Message # 2 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| i have not encountered a situation like this in my chars because i have not needed a situation like this,but try this
parentdist <= ##
or
rootdist x <= ##
remember parent is whoever created/called the helper, helper (parent) can call another helper (child)
root is the char player itself
for your case, the helper you are detecting the distance of should be a child helper
|
|
| |
Omegaxis12 | Date: Monday, 2012-06-04, 6:56 AM | Message # 3 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| hmmm
i forgot to tell this but what i mean is not the nearest helper from the player but the nearest helper A from another helper A
and the parent helper is destroyed after it summoned the child helper
but i will try what you mean
Message edited by Omegaxis12 - Monday, 2012-06-04, 6:59 AM |
|
| |
sgn_15 | Date: Monday, 2012-06-04, 9:44 AM | Message # 4 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| if the parent is destroy as soon as it calls the child helper, then who is the one that needs to detect the nearest helper? you mean the player char itself ? then use rootdist
|
|
| |
Omegaxis12 | Date: Monday, 2012-06-04, 9:56 AM | Message # 5 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| oh yeah, i realized it after i commented here(LOL) so i only made the parent helper changestate after it summons the child state
EDIT: i realized again one thing why should i use parentdist if what i'm looking for is the distance beetween the parents(which are all helpers) and not the child to parent distance?
pls clarify it if im wrong
Message edited by Omegaxis12 - Monday, 2012-06-04, 10:00 AM |
|
| |
sgn_15 | Date: Monday, 2012-06-04, 10:02 AM | Message # 6 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| so the helpers are like this:
char ---> helper A
char ---> helper B
you want the distance between helpers A and B ?
|
|
| |
Omegaxis12 | Date: Monday, 2012-06-04, 10:03 AM | Message # 7 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| yeah something like that because what i want is for the child helper to travel to the nearest helper because their can be 3 to 5 parent helper in the screen
EDIT: WHAT I WANT IS DISTANCE BETWEEN the HELPER As(parent helpers) HELPER B is the child helper
Message edited by Omegaxis12 - Monday, 2012-06-04, 10:08 AM |
|
| |
sgn_15 | Date: Monday, 2012-06-04, 10:12 AM | Message # 8 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| like i said before, i have not really done something like this (situation you want), but i think you can try (read that, CAN TRY, not sure) to put the distance into variables.
there is no dist trigger, if there is, you can use helper(###) , dist easily anytime you want, but there is no dist trigger
like i said, i have not much idea in this. this might (read that, MIGHT, not sure) be one of the limitations of mugen. again, not sureAdded (2012-06-04, 10:12 AM) --------------------------------------------- explain the specific helper thingies you want to call. i mean tell me the concept, are they plants, thunder, whatever
p.s. i have just read your ym message what color of thunder you need ?
|
|
| |
Omegaxis12 | Date: Monday, 2012-06-04, 11:33 AM | Message # 9 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| hmm... here's the video of what i want to do
sorry for the bad video quality(fucking trial version of video converter)
you see when the the parent helper summon the child helper it travels to the next nearest parent helper
oh btw do you have a set of sprite similar to this? and color yellow pls
i tried to make it HD then change the color to yellow
when i put it to fighter factory then make the color A(in the animation tab)
it doesn't look good
Message edited by Omegaxis12 - Monday, 2012-06-04, 11:34 AM |
|
| |
sgn_15 | Date: Monday, 2012-06-04, 11:52 AM | Message # 10 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| ok. i will try to understand what you want to code.
so nami calls those bubbles in the air that stay and float in the air
when 2 bubbles collide, they explode and become thunder
is that right ?
no. i don't have anything that goes in circular direction like that. i can try to blur it for you and i will convert it to pcx for you (you might have converted the bmp into pcx the wrong way, might)
give me the sheet of that effect
|
|
| |
Omegaxis12 | Date: Monday, 2012-06-04, 12:02 PM | Message # 11 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| not the colliding of bubbles sir see when nami spawn the thunderball it goes to the bubble then the bubble(the one where the lightning ball goes through) spawn lightning(which is the child helper) then lightning travels to the nearest helper
oh btw this is the sprite sheet of the effect
i think i made the pic HD the wrong way but not the convertion of bmp to pcx
Message edited by Omegaxis12 - Monday, 2012-06-04, 12:03 PM |
|
| |
sgn_15 | Date: Monday, 2012-06-04, 12:09 PM | Message # 12 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| wait, so the bubbles have different variants ? not really familiar with nami's attacks tbh
you might want to explain it again more specifically
from the bubbles to the thunder, can't you just use changestate instead of bubbles calling thunder? that way, it is still the same helper, practically, just in a different state
k i will blur the effects
|
|
| |
Omegaxis12 | Date: Monday, 2012-06-04, 12:12 PM | Message # 13 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| Quote (sgn_15) rom the bubbles to the thunder, can't you just use changestate instead of bubbles calling thunder? that way, it is still the same helper, practically, just in a different state
yeah but the problem is how to make a velset for the lightning that comes from the bubble to travel to the nearest bubble
Quote (sgn_15) k i will blur the effects oh tnx
Message edited by Omegaxis12 - Monday, 2012-06-04, 12:15 PM |
|
| |
sgn_15 | Date: Monday, 2012-06-04, 12:18 PM | Message # 14 |
God
Group: contributor
Messages: 2518
Awards: 4
Reputation: 31
Reproofs: 0%
Status: Offline
| are all the bubbles the same helper (same state, same ID) ?
|
|
| |
Omegaxis12 | Date: Monday, 2012-06-04, 12:29 PM | Message # 15 |
Knight
Group: contributor
Messages: 169
Awards: 0
Reputation: 5
Reproofs: 0%
Status: Offline
| Quote (sgn_15) are all the bubbles the same helper (same state, same ID) ?
different ids but if needed i will make them with the same ids
Message edited by Omegaxis12 - Monday, 2012-06-04, 12:37 PM |
|
| |