News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Code Help

Started by EVILNEON, November 29, 2008, 11:50:37 PM

Previous topic - Next topic

EVILNEON

Hey guys, Im making a char of Tarble from the new dbz special,but I ran into a snag. See I have 4 sprites starting with 730,0 730,1 730,2 730,3 . Now I put them all in animation and did the coding but when I go to MUGEN and power up it only shows sprites 0,1 and 2 ? Here is what I got. Can someone help me please.


[Statedef 730]
type    = S
physics = S
ctrl = 0
velset = 0,0,0

[State 730, 0]
type = VelSet
trigger1 = Time = 0
x = 0
y = 0
z = 0

[State 730, 1]
type = ChangeAnim
trigger1 = Time = 0
value = 730

[State 730, 0]
type = PalFX
trigger1 = AnimElem = 3
trigger2 = AnimElem = 5
time = 3
add = 128,128,128

[State 730, 1]
type = PalFX
trigger1 = AnimElem = 2
trigger2 = AnimElem = 4
time = 1
add = 64,64,64

[State 730, 4]
type = poweradd
trigger1 = Time >= 0
value = 6

[State 730, 3]
type = PlaySnd
trigger1 = AnimElem = 1
value = 100,1

[State 730, 3]
type = PlaySnd
trigger1 = AnimElem = 3
value = 100,1

[State 730, a]
type = StateTypeSet
trigger1 = Pos Y < 0
value = A

[State 730,fuwaVar(1)]
type = VarSet
triggerall = Pos Y < 0
trigger1 = Var(2) = 2
trigger1 = Vel Y >= 2.4
trigger2 = Time = 0
v = 2
value = 1

[State 730,fuwaVar(2)]
type = VarSet
trigger1 = Pos Y < 0
trigger1 = Var(2) = 1
trigger1 = Vel Y <= -2.4
v = 2
value = 2

[State 730,fuwaUp]
type = VelAdd
trigger1 = Pos Y < 0
trigger1 = Var(2) = 1
y = -0.3

[State 730,fuwaDown]
type = VelAdd
trigger1 = Pos Y < 0
trigger1 = Var(2) = 2
y = 0.3

[State 730,fuwaEndVar]
type = VarSet
triggerall = Pos Y < 0
trigger1 = command != "charge"
trigger2 = command != "charge 1"
v = 4
value = 0

[State 730, b]
type = ChangeState
triggerall = Pos Y < 0
trigger1 = command != "charge"
trigger2 = command != "charge 1"
value = 1500

[State 1500, 3]
type = ChangeState
trigger1 = AnimTime = 0
trigger1 = Pos Y < 0
value = 1500

[State 730, 4]
type = ChangeState
trigger1 = command != "charge"
trigger2 = command != "charge 1"
value = 0
ctrl = 1

Rajaa Retired

what is the frame time you have on the sprite that isn't showing up? make sure it is not zero.
                                                   -                                                                       
[Statedef 730]
type    = S
physics = S
ctrl = 0
velset = 0,0,0

[State 730, 0]
type = VelSet
trigger1 = Time = 0
x = 0
y = 0
z = 0


WTF?! this ain't ABC's

only X and Y axis's buddy, you must have skipped math class ;P

Anyway form what you've shown;

Quote
[State 1500, 3]
type = ChangeState
trigger1 = AnimTime = 0
trigger1 = Pos Y < 0
value = 1500
the problem, you will automatically leave the state when you reach the end of the animation and are in the air?

also,are those 2 charge commands the same button? if not then you will exit that state, automatically. that doesn't seem to be the problem though since you are going through the animation.

to be honest i don't understand what your code is about, you have alot of pos y <0's but your state type is equal to stand and so is physics, is this an air charge or what?

EVILNEON

Sweet ! Thanks for being so nice about it. This is my first char , so please cut me a little slack here. I figured it out any way. Yet I do have another question how would you code a tranformation? Like a regular char to a giant ape per say? I have the sprites , I just need the know how on how to code them !

Cyanide

Depends, does he stay a giant ape, or just do the move as a giant ape.

If it's stay, don't bother. He'll temporarily stop being a giant ape if he's ever put in a custom state. Doesn't look very good.


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.

Luigi Master

Unless the Ape has Hyper Armor to prevent it.
Quote from: ross61 on January 12, 2009, 02:48:34 AMNo  Dark Sean and Gouken are Good characters
Quote from: Tetsuo9999 on January 16, 2009, 01:11:59 AMTrivial knowledge: Anime sucks.

EVILNEON

Ok so lets say I want him to stay an ape ! How do I code him for that? Please help, I have no idea on how to do this.Thanks guys.

Rajaa Retired

did you read the responses?

The Railgunner

When the transformation is supposed to happen, make a variable and use a varset to set it to, say, 1. Then, for all Great Ape states, make a changestate that puts Tarble in his regular states if and only if that variable is below 1. This also give you the ability to add a command or condition that reverses the transformation by setting the ape variable to 0, if you decide that you want to add that as an option.

I'll put a transformation tutorial in the Code Library for reference, k?

EVILNEON

Thanks vegeta !!!! That helped out a bunch.! As for Rajaa , can you please be less of an @$$, I mean come on man im a noob to this. Just as you were at one point.

Rajaa Retired

my first post, i was kidding with you while telling you something that shouldn't be done, and in my second post it seemed like you ignored what the others said to you, but sure i will try not to be an a**

EVILNEON

Thank you very much ! I just need help with code's thats all. I try to go bye what other say or done, yet I still get confused. So It may sound like im stupid or dont pay attention at times, its not that.  Im just trying to get an understanding of the whole code situation. ;D