collapse

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

0 Members and 1 Guest are viewing this topic.

Offline captainz

  • New Member
  • *
  • Posts: 6
  • Last Login:June 24, 2021, 02:27:15 AM
    • 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:June 24, 2021, 02:27:15 AM
    • 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: 12458
  • Country: Brazil br
  • Last Login:March 21, 2024, 10:58:34 AM
  • 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:June 24, 2021, 02:27:15 AM
    • 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

SPIDER-VERSE THE AMAZING MUGENSTORY©EPISODE 10 "THE OTHERVERSE" 1080P BY REB3LTV by Rage
[March 27, 2024, 02:44:21 PM]


D2TD VS Showcase Thread by D2TD
[March 24, 2024, 11:09:37 AM]


Tree Of Erebus Stage 1.1 & 1.0 by MatreroG
[March 22, 2024, 08:13:48 AM]


.Batzarro's. Sprite Edits by MatreroG
[March 20, 2024, 07:58:08 AM]


World Heroes 2 Shura Stage by Vegaz by LightFlare
[March 19, 2024, 12:44:28 PM]


MOVED: Prepare your ****! ***** Soldier gets his **** ready in MUGEN! by Rage
[March 18, 2024, 11:08:23 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[March 14, 2024, 01:34:08 PM]


R.I.P. Akira Toriyama "Dragonball Legend" by Rage
[March 12, 2024, 03:01:39 PM]


DBFZ Rocky Field (noon) by jafar
[March 10, 2024, 11:59:23 PM]


World Heroes 2 Neo Geegus Stage by Vegaz by LightFlare
[March 09, 2024, 11:04:56 AM]

* IMT Calendar

March 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
31

SimplePortal 2.3.5 © 2008-2012, SimplePortal