YesNoOk
avatar

Hitsparks as Explods question. (Read 1804 times)

Started by -SyN-, August 18, 2008, 02:07:11 pm
Share this topic:
Hitsparks as Explods question.
#1  August 18, 2008, 02:07:11 pm
  • ****
  • Accomplished many things you can't comprehend.
    • USA
    • http://clubsyn-x-treme.com
I wanted to take advantage of the hi res scaling for my hitsparks in a project im in the middle of.
Yeah I can do a basic explod layout and use the scale factor of .5,.5 and randomize them per attack but to properly place them is where I am kinda stuck at.

For instance, if I do an attack while standing and the opponent is standing, it will show at the correct position i have coded.
If I do a standing attack and the opponent is jumping and the attack hits, the spark will look displaced.

What would be the proper method for me to use this explod to appear at the correct position no matter where the character hits the opponent whether standing, crouching, and jumping?

Im trying to avoid using multiple explods in a single state for hitsparks if possible.

Thanks in advance.
Re: Hitsparks as Explods question.
#2  August 18, 2008, 02:10:46 pm
  • ******
  • I hang out tough. I'm a real boss.
    • USA
    • litotichues.com/
pos the explod not to p2 but to p1....i think :S

Re: Hitsparks as Explods question.
#3  August 18, 2008, 02:14:23 pm
  • ****
  • Accomplished many things you can't comprehend.
    • USA
    • http://clubsyn-x-treme.com
even if i assign the sparks to player one, those single basic attacks that stays the same whether far or close up wont be placed correctly.
Re: Hitsparks as Explods question.
#4  August 18, 2008, 02:17:08 pm
  • ******
  • Complicated.cns
  • No, I've never played a Zelda game before, shut up
    • Argentina
you can:

A) read the enemy's statetype during the hit and place the explod according or...

2) give the explod a fixed position (like where would hit)

method A with the explod binded to P2 and method B with the explod binded to p1

dunno what else to do, you may just check P.o.t.S. latest chars
pls
Re: Hitsparks as Explods question.
#5  August 18, 2008, 02:19:35 pm
  • ****
  • Accomplished many things you can't comprehend.
    • USA
    • http://clubsyn-x-treme.com
Alright, I didnt know Phantoms characters uses that method I'm trying to do, I'll see what I can cook up.
Re: Hitsparks as Explods question.
#6  August 18, 2008, 03:11:39 pm
  • **
you could use on the y postition    Ceil( p2bodydist y + 10) ....these will compare your and your enemy position, for example..if both are standing, the position will be  10  ......the ceil, its just to avoid debug flood
Re: Hitsparks as Explods question.
#7  August 18, 2008, 07:44:00 pm
  • ******
  sparkxy = spark_x, spark_y (int)
    This is where to make the hit/guard spark.
    spark_x is a coordinate relative to the front of P2. A negative
    value makes the spark deeper inside P2. "Front" refers to the x-
    position at P2's axis offset towards P1 by the corresponding
    width value in the [Size] group in P2's player variables.
    spark_y is relative to P1. A negative value makes a spark higher
    up. You can use a tool like AirView to determine this value by
    positioning the cursor at the "attack spot" and reading off the
    value of the y-position.
    Defaults to 0,0 if omitted.
Take the numbers you would be using if you made it a regular hitspark, calculate the position the hitspark would be at using this formula (at the instant the move hits) and add the two. Whether the opponent is jumping or standing, this formula doesn't change. This is what sparkxy normally does, so if you want to do the same thing as a regular hitspark, use that.
If I struggled to the end of my determination, to the end of my way of life with my followers, if the result is ruin, then this ruin is inevitable. Grieve. Shed tears. But you cannot regret.
Re: Hitsparks as Explods question.
#8  August 18, 2008, 11:18:33 pm
  • ****
  • Accomplished many things you can't comprehend.
    • USA
    • http://clubsyn-x-treme.com
I took a look at Pots Nakoruru and figured out how he did it and its working properly!

Thank you all for helping!
Re: Hitsparks as Explods question.
#9  August 22, 2008, 02:10:34 am
  • ****
  • King of Sona
your welcome
Spoiler, click to toggle visibilty

Quote
Lord Canti Says:
i was playing FFVII and I accidently named Red XIII Cyanide D:

card sagas wars is gonna own put this in your signature if you agree

old avy http://i36.tinypic.com/scgkmh.png
oversized signature! please read the rules