YesNoOk
avatar

Kamehameha Wave Help, please? (Read 2896 times)

Started by Ryon, April 27, 2008, 03:27:20 am
Share this topic:
Kamehameha Wave Help, please?
#1  April 27, 2008, 03:27:20 am
  • *****
  • "The Future is Now"
alrighty as you can see from my avatar i'm making a new character, Kid Goku.

he is my pride and joy at the moment.

how i have a major question.

WHICH SHOULD I USE HELPER OR PROJECTILE, FOR THE ACTUAL KAMEHAMEHA WAVE?

also, before you answer, i would like to know something, when ever i use projectile coding, and goku is hit the beam still keeps going, HOW DO I STOP THE BEAM IF GOKU GETS HIT?

i appreciate any help you guys can give.
Re: Kamehameha Wave Help, please?
#2  April 27, 2008, 07:23:31 pm
  • ****
  • Humanity can be so much more
    • Jamaica
    • https://network.mugenguild.com/makkah/
I haven't used projectiles in 4 years so I can't be exactly sure (too lazy to read the docs), but there should be a remove projectile sctrl IIRC.

Personally, I prefer helpers to projectiles since they are more flexible, and back when I was coding a Kamehameha for my ssj2 goku, it worked much better for a multi-hitting beam attack (for me).
Re: Kamehameha Wave Help, please?
#3  April 28, 2008, 04:57:47 pm
  • ******
  • [E]
    • Mexico
Use a helper.
Re: Kamehameha Wave Help, please?
#4  April 28, 2008, 10:42:36 pm
  • *****
  • "The Future is Now"
thanks POTS for moving the topic, for some damn reason i can never figure out where to place my help questions.

and Makkah i havent seen your chars lol but i'll look into them.

as of the moment it is a Projectile, but i will turn it into a helper. and i'll look into the DOCs for sctrl reguarding the helper remove coding. thanks a bunch guys.

here is the status on goku.
http://youtube.com/watch?v=yDhiBNqfskI

the beam is at the end. ^_^ i edited it myself.
Re: Kamehameha Wave Help, please?
#5  April 29, 2008, 01:14:33 am
  • *****
  • "The Future is Now"
eh heh..... i was never good with helper coding... maybe you guys can show me what i'm, doing wrong?

firstly, i got the animation to show up correctly, and it hits 11 times (like it should) because i added 11 hit def triggers.

the problem is, as you can see i added the destroyself code so it kills it self after 100 ticks ,the animation ends with a -1 image sprite so it disappears reguardless then dies off anyways. what TYPE of coding should i use for IF PLAYER GETS HIT?

also how do i make it hit the opponent alot of times with out adding more triggers to it?

for instances like Sagat does his Tiger Uppercut, its around 6 to 8 hits and in the coding its just 1 trigger, how can i do that?

Quote
; KAMEHAMEHA WAVE
[Statedef 500]
type    = S
movetype= A
physics = S
juggle  = 5                     
velset = 0,0
ctrl = 0
anim = 500
poweradd = -1000
sprpriority = 1

[State 500, 1]
type = PlaySnd
trigger1 = Time = 1
value = 0, 3

[State 500, 1]
type = Helper
trigger1 = animelem = 5
helpertype = Normal
name = "Kamehameha"
ID = 500
pos = 22,-30
postype = P1
stateno = 501
ownpal = 1
supermovetime = 0


[State 500, 7]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1

[Statedef 501]
type    = S
movetype= A
physics = N
juggle  = 5             
velset = 0,0
ctrl = 0
anim = 501
poweradd = 0
sprpriority = 3

[State 501, 1]
type = PlaySnd
trigger1 = Time = 1
value = 0, 4

[State 501, 1]
type = Hitdef
trigger1 = animelem = 1 ||animelem = 2 ||animelem = 3 ||animelem = 4 ||animelem = 5 ||animelem = 6 ||animelem = 7 ||animelem = 8 ||animelem = 9 ||animelem = 10 ||animelem = 11
attr = N, HA
damage = 15,0
animtype = heavy
guardflag = MA
hitflag = MAFD
priority = 3, Hit
pausetime = 0, 0
sparkno = S4010
sparkxy = 0, 0
guard.sparkno = S510
hitsound =S0,2
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime  = 10
ground.velocity = -3,0
airguard.velocity = -1.9,-.8
air.velocity = -4,0
air.hittime = 13

[State 501, DestroySelf After Ticks]
type = DestroySelf
trigger1 = time = 100
Re: Kamehameha Wave Help, please?
#6  April 29, 2008, 06:37:47 am
  • ****
  • Humanity can be so much more
    • Jamaica
    • https://network.mugenguild.com/makkah/
Firstly, none of my released characters use beams, sorry. That Goku was my first one ever, and he's long gone now. However, I still remember the method I used quite well. I simply set trigger1 to 1 and the beam's hitpause to a value that was larger than its victim's. Finally I made it disappear after a certain time period had expired.

I didn't use a -1 for my animation (I looped it) so I didn't have your problem. If the player is in a fixed state during the attack, however, you can try parent, time = blah, and see how that works for you.
Re: Kamehameha Wave Help, please?
#7  April 29, 2008, 04:58:26 pm
  • ******
  • [E]
    • Mexico
use parent, stateno to detect if the parent is still in the kamehameha state, if not, destroyself.
Re: Kamehameha Wave Help, please?
#8  April 29, 2008, 11:12:46 pm
  • *****
  • "The Future is Now"
use parent, stateno to detect if the parent is still in the kamehameha state, if not, destroyself.

thanks Makkah!

and wow Satou that actually makes sense. but i never used Parent states befores. i assume the code is something like this *random though*

[State 1000, Kamehameha]
type = destroyself
trigger1 = ok i got nothing...

i know you guys dont give out the exact codes, but it would be greatly appricated here.
Re: Kamehameha Wave Help, please?
#9  April 29, 2008, 11:29:25 pm
  • ****
  • Humanity can be so much more
    • Jamaica
    • https://network.mugenguild.com/makkah/
trigger1 = parent, stateno = [insert value]

That's exactly how its written, except for the "[insert value]" of coarse.
Re: Kamehameha Wave Help, please?
#10  April 30, 2008, 12:30:14 am
  • *****
  • "The Future is Now"
Re: Kamehameha Wave Help, ALMOST DONE!
#11  April 30, 2008, 12:51:20 am
  • *****
  • "The Future is Now"
sorry for double post.

YOUR CODE DIDNT WORK AS I EXPECTED! *cRIES!*

however! i did figure it out! lol.

i used change state and destroy self. well either way i got it to work.

i set it to disappear if Goku enter's states 5010,20,30 or 40, even thought 30 and 40 are some what impossible for him to reach in standing motion, i added them in case.

now another problem reguarding the beam.

basically it works perfect on anypart of the screen except the edges, the helper gets "corner pushed back" by the walls. how can i make the helper stick in 1 place and not move?

here is a picture of it in action.
Re: Kamehameha Wave Help, please?
#12  April 30, 2008, 12:53:28 am
  • ******
  • [E]
    • Mexico
use cornerpush of 0 in the hitdef ?
Re: Kamehameha Wave Help, please?
#13  April 30, 2008, 01:04:36 am
  • *****
  • "The Future is Now"
thanks everyone! it works perfectly now.

for the sake of it all, i added all 3 cornerpush's.

Ground, Air, Down.

^_^ now i can work on his hit sparks or something.. or sounds better yet LOL.