collapse

Author Topic: Help coding in insert coin to each character  (Read 743 times)

0 Members and 2 Guests are viewing this topic.

Offline captainz

  • New Member
  • *
  • Posts: 6
  • Last Login:September 28, 2024, 11:42:49 PM
    • Email
Help coding in insert coin to each character
« 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.       



Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Help coding in insert coin to each character
« Reply #1 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.

Offline captainz

  • New Member
  • *
  • Posts: 6
  • Last Login:September 28, 2024, 11:42:49 PM
    • Email
Re: Help coding in insert coin to each character
« Reply #2 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.

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: Help coding in insert coin to each character
« Reply #3 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 ; 

Offline captainz

  • New Member
  • *
  • Posts: 6
  • Last Login:September 28, 2024, 11:42:49 PM
    • Email
Re: Help coding in insert coin to each character
« Reply #4 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.
 

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

D2TD VS Showcase Thread by D2TD
[November 24, 2024, 09:12:03 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by LightFlare
[November 21, 2024, 09:44:09 PM]


Terrordrome: Rise of the Boogeymen Extended Version ( jeepers creepers) version by leonardo
[November 19, 2024, 10:22:47 PM]


Hill of the Nameless(1.1 Only) by Vegaz by LightFlare
[November 19, 2024, 10:50:39 AM]


Golden Axe Returns by gokudo99
[November 19, 2024, 03:59:31 AM]


Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]

* IMT Calendar

November 2024
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 [25] 26 27 28 29 30

SimplePortal 2.3.5 © 2008-2012, SimplePortal