YesNoOk
avatar

Problem with hit sparks (Read 3934 times)

Started by Synck, May 12, 2017, 09:40:37 pm
Share this topic:
Problem with hit sparks
#1  May 12, 2017, 09:40:37 pm
  • ****
  • a.k.a DuckSS
    • https://synckmugencentral667.000webhostapp.com/
Hello there. I have been seeing some weird problem with hitsparks in some helpers of my characters in Simul mode.

The problem is when helper hits 2 chars at the same time the hitspark just shows up on one character, but it doesn't show up on second character.

How I can fix that?

Here's the code of hitspark which I use inside the helper:
Spoiler, click to toggle visibilty
Re: Problem with hit sparks
#2  May 13, 2017, 03:24:57 am
  • ******
  • Legendary XIII
  • I am the eye of the storm to come!
    • New Zealand
    • network.mugenguild.com/cyanide/
You're using helper hitsparks. You have to account for the fact that there are 2 opponents and you need to create a second helper for the second opponent. The helpers then need to position based on that.

You need an extra trigger for numtarget = 2 for the second helper, and that helper needs to reference the right playerID to position itself accurately. This is possible but a pain in the ass. If you can take the code from another character that would be easier for all concerned.

Otherwise you need to use enemynear(0) and enemynear(1), find out what the ID's are. Save those to variables, and have the helpers save that var to their own var before using that variable to position themselves.


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.
Re: Problem with hit sparks
#3  May 13, 2017, 11:15:49 am
  • ****
  • a.k.a DuckSS
    • https://synckmugencentral667.000webhostapp.com/
Wouldn't be a problem if you show me how to do code that?
I'm kinda weak with making Vars and stuff at this point.