Auto Target

Started by N_Shikamaru, February 24, 2008, 02:43:32 PM

Previous topic - Next topic

N_Shikamaru

hello guys!
i have a problem, i want to disable the auto target(ing) of the char, the char should be able to move around like he wishes without targeting the enemy
i looked around the common file but couldnt figure it out
i hope someone will help me:)

DemonicDrPhil

try looking at assertspecial in the docs (click it)

also do you mean like auto turn disabling?
Latest Yoshi alpha ready for feedback Aug 15th check here for details...

N_Shikamaru

Quote from: DemonicDrPhil on February 24, 2008, 03:05:13 PM
try looking at assertspecial in the docs (click it)

also do you mean like auto turn disabling?


i tried it also with assertspecial some things but it didnt work so i dotn think it will solve my problem

and yes auto turn as well

Bastard Mami

did you put it in st-2 ?

N_Shikamaru

Quote from: R[E]ika on February 24, 2008, 08:51:04 PM
did you put it in st-2 ?

i did put this in:
 
(  [Statedef -2]  )

[State -2, AssertSpecial]
type = AssertSpecial
trigger1 = 1
flag = noautoturn

but still no use ???

Bastard Mami

there is a reason for it not to be working, do you have anymore assert specials ?
also, by not working, what do you mean ?

N_Shikamaru

you know (already)the reason why its not working?
and i dont have other assert specials,
and it simply does not work, mean there is nothing that this code makes just nothing, you would say noautoturn or whatever error but there is still nothing  ???

Bastard Mami

that code makes it so your charatcer does not turn automatically, it should be working; so now i assume that you want a more complex effect than what you are achieving. the only thing that code does is making it so if the other character gets in your character's back, he won't turn to face him.

if you need something more post about it because my mind reading skills don't work well over the internet.

Cyanide

Quoteyou know (already)the reason why its not working?

Analogy time...

You go to the doctor and make a general statement of "i'm sick" does he INSTANTLY provide you with the solution? Or does he ask for (and hopefully recieve) more info from you.

By the same token, "it doesn't work" tells us very little. Your definition of not working based on your current problem could be any number of things due to the fact you haven't given us any real details of what you're trying to achieve and when.


In M.U.G.E.N there is no magic button

They say a little knowledge is a dangerous thing, but it's not one half so bad as a lot of ignorance.

N_Shikamaru

Quote from: R[E]ika on February 26, 2008, 12:28:06 AM
the only thing that code does is making it so if the other character gets in your character's back, he won't turn to face him.

if you need something more post about it because my mind reading skills don't work well over the internet.

true, that was not what i wanted


Quote from: [C]yanide on February 26, 2008, 01:35:27 AM
Quoteyou know (already)the reason why its not working?

Analogy time...

You go to the doctor and make a general statement of "i'm sick" does he INSTANTLY provide you with the solution? Or does he ask for (and hopefully recieve) more info from you.

By the same token, "it doesn't work" tells us very little. Your definition of not working based on your current problem could be any number of things due to the fact you haven't given us any real details of what you're trying to achieve and when.

ok srry for being not exactly you are right you cant help me if i dont explain it well
ok so then, i want that the char should not auto target or auto face the enemy, i mean he should be able to move around at his will but during not target the enemy so in praxis the char only have forward (i believe, if it goes well)

Bastard Mami

there are two ways (sheeh, try being more specific) one is having your character only turn when you presas a button, like guilty gear isuka, the other is having the char facing the last pressed direction, like in the platform games.

N_Shikamaru

Quote from: R[E]ika on February 26, 2008, 04:47:48 PM
there are two ways (sheeh, try being more specific) one is having your character only turn when you presas a button, like guilty gear isuka, the other is having the char facing the last pressed direction, like in the platform games.

i think my idea fits the second one^^
ah w8 i have found a char that is like i want it to be
http://www.sendspace.com/file/9uptnk     

Bastard Mami

you will have to overwrite state 20 and have a turn sctrl based on facing.

N_Shikamaru

Quote from: R[E]ika on February 26, 2008, 05:28:59 PM
you will have to overwrite state 20 and have a turn sctrl based on facing.

hope i finally could explain what i wanted ;P,
dont understand this, well the walking state? why that? if so then the effect i want would  be only for the walking or not?
can you explain it?

Bastard Mami

you need to explain exactly what you want to code, becuase two problems were alreeady solved and you still keep on coming for more.

N_Shikamaru

Quote from: R[E]ika on February 29, 2008, 07:23:51 PM
you need to explain exactly what you want to code, becuase two problems were alreeady solved and you still keep on coming for more.

ok i want that the char should face the last faced direction, but for this i have to modify the common files but i dont know what and how?
thats it

Bastard Mami

we are back to the first step: just use assert special of no autoturn with trigger1 = 1.

since that did not work, under which conditions do you wish your charatcer to change it's facing?

N_Shikamaru

ok the assert special code makes that if the other character gets in my character's back, that he won't turn to face him, but i want that condition every time in every state, mean not only if the enemy gets in my back , meh hard to explain ,
well my char should face the last pressed direction ok the assert code makes that in a way but not exactly its only "available" if the other chars gets in my back but i want that condition everytime in every state, just you explained in your previous posts i want him to be like in platform games but the codes does not give the effect i want, well what i want is like the char i posted, there the char face the last pressed direction thats the best example

Bastard Mami

when deos he turn by himself?

N_Shikamaru

Quote from: R[E]ika on March 01, 2008, 04:53:04 PM
when deos he turn by himself?


well never, if the enemy goes behind of my char then he does not turn he just faces the right side even if i hit my char he just faces the right, only the right

well should i send you the char so you can fix this?