Infinity MUGEN Team

IMT Main => M.U.G.E.N Help => Topic started by: captainz on April 23, 2014, 01:19:33 AM

Title: Help coding in insert coin to each character
Post by: captainz on April 23, 2014, 01:19:33 AM
Hi and thanks for reading, okay i noticed some older mugen mvc2 character rips like Charlie have the Press Start
flashing above there energy bar when fighting. Then i replaced the Press Start with a Insert Coin sprite i made and it looks great. So id like this put into all my characters. I understand how to add the sprites and animation but have little knowledge in coding and was hoping someone could give me a temple that i could input to each character and add to or if someone could link me to a tutorial that would teach me something similar to get me to my goal. 
Thanks in advance.       
Title: Re: Help coding in insert coin to each character
Post by: Cyanide on April 23, 2014, 05:47:06 AM
I am going to make the assumption you are at least using mugen 1.0 or greater and that inside the .def of every character you have this line

mugenversion = 1.0

If you know how to add the animation and sprites that makes things so much easier.

Create an anim, lets call it 6000. Find this line, it'll be somewhere in the cns files

[statedef -2]
Somewhere under that add this

[State -2]
type = explod
triggerall = numexplod(6000) = 0
trigger1 = ailevel > 0
ID = 6000
anim = 6000
postype = right ; (i am making the assumption that your p2 is always AI)
pos = -60,-80 ; (change this as required)
bindtime = -1
removetime = -1

We can also set this up so it shows on both sides by using teamside and teammode. If you want that please let me know, otherwise get the above working to some extent.
Title: Re: Help coding in insert coin to each character
Post by: captainz on April 23, 2014, 01:02:11 PM
thanks for the post Cyanide,
 yes im in 1.0 and i got this to work and found that if i add ((enemy, id)<id)* to pos witch i found in Charlies cns
that will make it all show on both sides in watch mode and demo mode.
Now i was wondering if there is a little more code we can add to make the Insert Coin flash or blink cuz that would make everything seam more lively. It seams Charlies cns can somehow make this happen without adding more animation.
Title: Re: Help coding in insert coin to each character
Post by: O Ilusionista on April 23, 2014, 01:45:59 PM
Just make the animation to blink in air, like
Quote
500,0, 0,0, 10 ;    <--- insert coin sprite
-1,0, 0,0, 10 ; 
Title: Re: Help coding in insert coin to each character
Post by: captainz on April 23, 2014, 05:39:24 PM
Okay looks like i simply forgot to delete the 600 example number from the ID as shown about with the real number. That is why code can be tricky, no room for even a vary small mistake.
 With that said it now works perfect, thanks for the help guys.
 
SimplePortal 2.3.5 © 2008-2012, SimplePortal