YesNoOk
avatar

super move doesnt work (Read 351 times)

Started by Zodiac Uchiha, September 15, 2010, 02:35:39 am
Share this topic:
super move doesnt work
#1  September 15, 2010, 02:35:39 am
  • **
    • Germany
hi again !
i think this time we wont take very long to solve this problem. here the description :
i coded a super in which my char gets a posadd to the opponent. like this:
[State xxx, posadd]
type = posadd
trigger1 = animelem 30
x = p2bodydist x
y = p2bodydist y
so he should reach the opponent no matter where he is at this moment. right ?
ok he does a slashing combo there and after that, i want him to return to the ground on the opposite site from where i started. i guess like this
[State xxx, posadd]
type = posadd
trigger1 = animelem = 66
x = 100
y = ??????
the y value is my problem. i want my char to return to the ground no matter if he is in the air or not. if i type   ground it wont work, right ? and i f write 0 it wont change the y value, correct ? now do i have to use posadd for the x value and posset for the y value ? or how do i solve this one ? pls help out guys. Oh yeah, i forgot to tell you that it is a teleport with which he returns to the ground. otherwise i could have used the ifelse method in the changestate at the end.
this is the statedef in which the super should start. i want the state to end when the player reaches the opponent.
thats at the end of the animtime.
Spoiler, click to toggle visibilty
and this one is the state in which the hits are defined and the player returns to the ground.
Spoiler, click to toggle visibilty
Spoiler, click to toggle visibilty
btw..."speed" was defined this way:
[mcode]
[Command]
name = "speed"
command = D, B, a
time = 15
[/mcode]
he does nothing but a slash though. i have a normal slash attack on command a. thats why. but the super doesnt work with the desired command. i cant find errors alone. can anyone help ?
Last Edit: September 15, 2010, 04:39:28 pm by Zodiac Uchiha
Re: back to ground position after super
#2  September 15, 2010, 10:20:14 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
[mcode]type = posset
y = 0[/mcode]


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.
super move doesnt work
#3  September 15, 2010, 02:46:59 pm
  • **
    • Germany
hm.yeah ok i typed it exactly as you told me. i only added this above the y value
x = p2bodydist x + 100
but that shouldnt be a problem...but it doesnt work yet. this time, statetype = S  is correct.
and a variable isnt needed. since i can test the char, the posset and posadd should be correct. but the move doesnt start.the explods cant be the problem. and even if the hitdefs have a few errors, this doesnt stop the move from starting / working. so, i cant find anything there.
Last Edit: September 15, 2010, 04:38:48 pm by Zodiac Uchiha
Re: super move doesnt work
#4  September 15, 2010, 11:34:49 pm
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
Oh missed the last line. Move the changestate above the standard slash. This is in the FAQ.


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.
the base of the super works. but i wanna use posadd..
#5  September 16, 2010, 05:42:10 pm
  • **
    • Germany
ok. the base works now. i will adjust the rest whats missing. now that it works, it will be easier for me. but it only works with posset. and not exactly as i want it to. if i use posadd, then which value should i write for y ? 0 will make no change. but i want him to return to the ground. does something as bottomdist exist ?

can you explain me why it is important to write this above the normal slash ? or at least tell me which faq i should read for this and in which line or which chapter. i dont understand this atm.
Last Edit: September 16, 2010, 05:45:34 pm by Zodiac Uchiha
Re: super move doesnt work
#6  September 16, 2010, 09:24:17 pm
  • **
    • Germany
ok the y value issue has been solved. i have to type       floor (- pos y)
i understood the statetype order as well.

but when the opponent is in the air, he comes down after the superpause and p1 and p2 have ctrl again without the supermove being executed. O.o
what can i do to avoid this ?
Re: super move doesnt work
#7  September 19, 2010, 11:12:59 am
  • **
    • Germany
ok. now the supermove is working perfectly on the ground. i left out the air issue for the moment to collect more experience in coding. since no one seems to be able to help atm, i am leaving the supermove as it is.
Re: super move doesnt work
#8  September 20, 2010, 02:11:15 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You use both dude. Posadd gets you to player 2. Posset drops you to ground level afterwards. Just trigger them differently.


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.