collapse

Author Topic: is there any good Coding Tuts  (Read 608 times)

0 Members and 1 Guest are viewing this topic.

Offline Malivictus

  • Initiate
  • **
  • Posts: 63
  • Last Login:October 21, 2018, 03:13:50 PM
  • know my name and Fear it I am Malivictus !!!
is there any good Coding Tuts
« on: July 08, 2010, 08:26:03 PM »
Hello one and all,

I know that this seem to be a Noob Question but..

is there any good Coding tut I have tuts for Sprite editing and PAL Editing but I am at the State where I need to learn the Code that FFU and Mugen use's I have IMT screen pack so I have Win Mugen and I am in the middle of making a MVC style Geese From SNK ( he is one of my all time top 5 bad guys ) and well I am having problems with hes coding I am use the MVC template and I have a youtube video of him fighting I will update this post with a Link for others to see but for now I would like to know how to Code better ( mostly in the Moves and Hyper combo parts ) as he only has 1 right now and that is Buggy as all heck...

Thanks in advance



the link to my Video..


U is a letter NOT as Word....

Offline Acey

  • Infinity Administrator
  • *
  • Posts: 9579
  • Country: United States us
  • Last Login:December 05, 2022, 10:43:15 PM
  • "Victory means nothing, the fight is everything."
    • Infinity Wiki - Acey
    • Email
Re: is there any good Coding Tuts
« Reply #1 on: July 10, 2010, 01:31:56 AM »
IMT Tutorials

 :cool

We also have a tutorial section on the forum.

Offline Malivictus

  • Initiate
  • **
  • Posts: 63
  • Last Login:October 21, 2018, 03:13:50 PM
  • know my name and Fear it I am Malivictus !!!
Re: is there any good Coding Tuts
« Reply #2 on: July 10, 2010, 04:36:39 PM »
Thank you for all the Help you have given me Acey in the past but I need help with a Hyper Combo I am trying to make it for some reason keeps looping and the AI keeps using the Hyper even when he has no Hyper bar to use...can you help me.

;Hyper Deadly Reppuken

[StateDef 3050]
type = U;S
movetype= A;HA
physics = N;S
juggle  = 0
velset = 0,0
ctrl = 0
anim = 777
poweradd = -2000
sprpriority = 1

[State 3050, PlaySnd]
type = PlaySnd
trigger1 = AnimElem = 1
value = S3000,1
volume = 100
channel = -1

[State 3050, 1]
type = Projectile
trigger1  = time%3=0
projanim = 4532
projhitanim = 889
projpriority = 1
projheightbound = -240, 100
projedgebound = 100
projscreenbound = 100
projshadow = -1
offset = 19,-7
attr = S, HA
damage   = 10
velocity = 5
animtype = heavy
guardflag = MA
hitflag = MAFDP
hitsound   = s3100,3
sparkxy = 500,500
guardsound = S6,0
ground.type = Low
ground.slidetime = 25
ground.hittime  = 25
ground.velocity = -6
air.animtype = Back
air.velocity = -4,-6
air.juggle = 3
air.fall = 1
down.velocity = -4,-6
down.hittime = 30
down.bounce = 0
pausetime = 10,10

[State 3050, PlaySnd]
type = PlaySnd
trigger1 = time%3=0
value = S777,1
volume = 50
channel = -1

[State 3050, EnvShake]
type = EnvShake
trigger1 = time%3=0
time = 50
freq = 60
ampl = -4
phase = 90

[State 3050, Hyper Portrait]
type = explod
trigger1 = time = 4
anim = 1080
postype = back
sprpriority = -3
supermovetime = -1
removetime = 60
pos = 0,0
bindtime = -1
removeongethit = 1

[State 3050, assertspecial]
type = assertspecial
trigger1 = time = [0,40]
flag = noBG
flag2 = noFG
ignorehitpause = 1



[State 3050, HyperBg]
type = Explod
trigger1 = AnimElem = 3
anim = 750    ;background
pos = 480,-5
id = 305
sprpriority = -4
supermovetime = -1
postype = back
bindtime = -1
removetime = 300
removeongethit = 1
facing = 1
shadow = 68,68,68
ownpal = 1
ignorehitpause = 1

[State 3050, HyperBg]
type = Explod
trigger1 = AnimElem = 3
anim = 750   ;background
pos = -160,-5
id = 305
sprpriority = -4
supermovetime = -1
postype = back
bindtime = -1
removetime = 300
removeongethit = 1
facing = -1
shadow = 68,68,68
ownpal = 1
ignorehitpause = 1

[State 3050, Sound]
type = PlaySnd
trigger1 = Time = 12
value = 8889,0

[State 3050, End]
type = ChangeState
trigger1 = animtime=0
trigger1 = BackEdgeBodyDist > -1
value = 0
ctrl = 1


[State 3050, PlaySnd]
type = PlaySnd
trigger1 = p2life = !0
value = S9999,6
volume = 100
channel = -1


if need be I can upload him "as is " for you to test....he is my first True From Scratch Char I have made...my Dan was a Sprite swap with a little Re coding but this Hyper is kicking my Behind I want to release him for others to use I just don't think he is ready for Hard Core MUGEN uses like yourself but I just need help..
U is a letter NOT as Word....

Offline kosmos

  • Infinity Regular
  • ****
  • Posts: 527
  • Last Login:January 28, 2023, 10:17:23 PM
  • Just a casual collector, don't mind me.
    • Email
Re: is there any good Coding Tuts
« Reply #3 on: July 10, 2010, 04:52:45 PM »
I think you might oughta fix that ground wave while your at it. Its waaaay to big. Unless you intended for it to be that way, but I don't like it.

Offline ELECTRO

  • Cosmic Creations
  • Contributor
  • ****
  • Posts: 1321
  • Country: United States us
  • Last Login:October 17, 2024, 05:40:31 AM
  • The Living Dynamo
    • THE-BEY0NDER
    • THE BEY0NDER
    • ELECTRO'S LAIR
    • Email
Re: is there any good Coding Tuts
« Reply #4 on: July 10, 2010, 08:04:51 PM »
For the Hyper move command do you have the power reduction added there? @-)

example :

[State -1, Hyper Attack]
type = ChangeState
value = 3000
triggerall = !var(59)
triggerall = command = "Hyper Attack"
triggerall = power >= 2000
triggerall = statetype != A
trigger1 = ctrl
trigger2 = var(51)
« Last Edit: July 10, 2010, 08:10:53 PM by ELECTRO »

Offline Malivictus

  • Initiate
  • **
  • Posts: 63
  • Last Login:October 21, 2018, 03:13:50 PM
  • know my name and Fear it I am Malivictus !!!
Re: is there any good Coding Tuts
« Reply #5 on: July 10, 2010, 11:08:55 PM »
ya I have it coded in the commands and No the Ha-do-ken he does is NOT meant to be that Large but I cant seem to Scale it down for some reason I have tryd everything to re-size it..

the Command for the Hyper is this.

[State -1, Hyper3]
type = ChangeState
value = 3050
triggerall = command = "Hyper3"
triggerall = power >= 2000
trigger1 = Statetype != A && ctrl
trigger2 = (StateType != A) && (HitdefAttr = SC, NA) && (MoveContact)

and as for the ha-do-kens size I have tryed..

size.xscale = .4
size.yscale = .4
xscale = .4
yscale = .4

and it still wont re-size with ether or in the projectiles Statedef

And BTW thanks for the help Guys I really need it..
U is a letter NOT as Word....

Offline Acey

  • Infinity Administrator
  • *
  • Posts: 9579
  • Country: United States us
  • Last Login:December 05, 2022, 10:43:15 PM
  • "Victory means nothing, the fight is everything."
    • Infinity Wiki - Acey
    • Email
Re: is there any good Coding Tuts
« Reply #6 on: July 10, 2010, 11:19:34 PM »
ya I have it coded in the commands and No the Ha-do-ken he does is NOT meant to be that Large but I cant seem to Scale it down for some reason I have tryd everything to re-size it..

the Command for the Hyper is this.

[State -1, Hyper3]
type = ChangeState
value = 3050
triggerall = command = "Hyper3"
triggerall = power >= 2000
trigger1 = Statetype != A && ctrl
trigger2 = (StateType != A) && (HitdefAttr = SC, NA) && (MoveContact)

and as for the ha-do-kens size I have tryed..

size.xscale = .4
size.yscale = .4
xscale = .4
yscale = .4

and it still wont re-size with ether or in the projectiles Statedef

And BTW thanks for the help Guys I really need it..


First of all make sure you add the following to the hyper CMD code:

Code: [Select]
triggerall = !var(59);When AI is not activated
Second, the AI would use it's own CMD code similar to what you wrote above but of course it will have the following code

Code: [Select]
triggerall = triggerall = (roundstate = 2) && (var(59) != 0);After the annoucer says "fight" and when AI is active
...in the MvC template variable 59 is for the AI activation.

The thing is, when you're using the AI code, almost every [statdef] from the CNS file will have two entires in the CMD file, one for the human player, one for the computer AI, what you posted aboce is for the human so it's not affecting the computer's playing style.

I strongly suggest you read the AI Tutorial  ;)

Offline Malivictus

  • Initiate
  • **
  • Posts: 63
  • Last Login:October 21, 2018, 03:13:50 PM
  • know my name and Fear it I am Malivictus !!!
Re: is there any good Coding Tuts
« Reply #7 on: July 11, 2010, 12:27:24 AM »
OMG I feel like a Twit I miss place a line of code he stops Chaining it Now thanks guys I still cant seem to Resizing the dang projectiles lol but hay one bug at a time huh...

Thanks you everyone who help me..
U is a letter NOT as Word....

Offline Acey

  • Infinity Administrator
  • *
  • Posts: 9579
  • Country: United States us
  • Last Login:December 05, 2022, 10:43:15 PM
  • "Victory means nothing, the fight is everything."
    • Infinity Wiki - Acey
    • Email
Re: is there any good Coding Tuts
« Reply #8 on: July 11, 2010, 12:46:55 AM »
OMG I feel like a Twit I miss place a line of code he stops Chaining it Now thanks guys I still cant seem to Resizing the dang projectiles lol but hay one bug at a time huh...

Thanks you everyone who help me..

resize code

scale = x,y

for example

Code: [Select]
scale = 0.5, 0.75  ;resize x by 50% and y by 75%

Offline ATiC3

  • Cryomancer
  • MUGEN Content Architect
  • *****
  • Posts: 4643
  • Country: United States us
  • Last Login:July 09, 2024, 09:24:19 PM
  • "Why not fight for Earthrealm?"
    • My Creations
Re: is there any good Coding Tuts
« Reply #9 on: July 11, 2010, 10:06:15 PM »
IMT Tutorials

 :cool

We also have a tutorial section on the forum.
Mine's better because I used FFU in mine (which is what probably everyone is stuck with until Fighter Factory 3 lol)... :P

http://www.infinitymugenteam.com/Forum_345/index.php?topic=27789.0
 

Offline Malivictus

  • Initiate
  • **
  • Posts: 63
  • Last Login:October 21, 2018, 03:13:50 PM
  • know my name and Fear it I am Malivictus !!!
Re: is there any good Coding Tuts
« Reply #10 on: July 11, 2010, 11:29:42 PM »
Thank you all but I got my Geese to stop spamming hes Alphas thanks to you all he is almost ready to be released for a BETA now he is MVC style not Capcom V SNK ...

I just need to finish off coding hes Air Attacks then I will upload him for download...Thank you once again..
U is a letter NOT as Word....

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

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]


D2TD VS Showcase Thread by D2TD
[November 17, 2024, 08:36:39 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]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by ExShadow
[November 02, 2024, 04:54:41 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