YesNoOk
avatar

Problem Creation of Movement (Read 802 times)

Started by Herniebal, March 02, 2019, 01:38:22 am
Share this topic:
Problem Creation of Movement
#1  March 02, 2019, 01:38:22 am
  • avatar
    • Argentina
Hello, im new and i'm trying to create a character
so, i want to do a slide punch with a coomand

first of all, i add the Statedef

 
Code:
Standing SLIDE PUNCH
; CNS difficulty: easy
[Statedef 2500]
type    = S
movetype= A
physics = S
juggle  = 4
poweradd= 65
ctrl = 0
velset = 0,0
anim = 2500

[State 2500, 1]
type = HitDef
trigger1 = Time = 0
attr = S, NA ;Attribute: Standing, Normal Attack
damage = 27, 0 ;Damage that move inflicts, guard damage
animtype = Medium ;Animation type: Light, Medium, Heavy, Back (def: Light)
guardflag = MA ;Flags on how move is to be guarded against
hitflag = MAF ;Flags of conditions that move can hit
priority = 3, Hit ;Attack priority: 0 (least) to 7 (most), 4 default
;Hit/Miss/Dodge type (Def: Hit)
pausetime = 8, 8 ;Time attacker pauses, time opponent shakes
sparkno = 1 ;Spark anim no (Def: set above)
sparkxy = -10, -105 ;X-offset for the "hit spark" rel. to p2,
;Y-offset for the spark rel. to p1
hitsound = 5, 0 ;Sound to play on hit
guardsound = 6, 0 ;Sound to play on guard
ground.type = High ;Type: High, Low, Trip (def: Normal)
ground.slidetime = 5 ;Time that the opponent slides back
ground.hittime  = 12 ;Time opponent is in hit state
ground.velocity = -4 ;Velocity at which opponent is pushed
airguard.velocity = -1.9,-.8 ;Guard velocity in air (def: (air.xvel*1.5, air.yvel/2))
air.type = High ;Type: High, Low, Trip (def: same as ground.type)
air.velocity = -1.4,-3 ;X-velocity at which opponent is pushed,
;Y-velocity at which opponent is pushed
air.hittime = 12 ;Time before opponent regains control in air

[State 2500, 5]
type = ChangeState
trigger1 = AnimTime = 0
value = 0
ctrl = 1


And then, i go to the command and put this

In the command section
Code:

[Command]
name = "Slide Punch"
command = D, F, z
time = 10


State entry
Code:
;Slide Punch
[State -1, Crouching Strong Punch]
type = ChangeState
value = 2500
trigger1 = command = "Slide Punch"
trigger1 = statetype = S
trigger1 = ctrl


And i don't know what i am ding wrong, becouse the character doesn't make any animation/move

i just wan't to add a movement
Re: Problem Creation of Movement
#2  March 03, 2019, 08:30:47 pm
  • *****
  • Shame on you!
    • USA
Does the character switch to State 2500?
Does the character have animation 2500?
When/If it does switch, you have
velset = 0,0
which means it wont move left or right, or up or down.

In game, press Ctrl+D 1 time. This will open Debug and let you see if it's changing states.
vVv Ryuko718 Updated 10/31/22 vVv
Re: Problem Creation of Movement
#3  March 03, 2019, 08:50:50 pm
  • avatar
    • Argentina
Tes they Char have animation 2500. I work few hours trying to resolver this. It's seems that i have other problem. An error messsage appears and says that muy Char is from and old versiĆ³n o of MUGEN. I download MUGEN 1.0 and i finnaly can do de movement. Thanks (sorry for muy English i'm from Argentina)
Re: Problem Creation of Movement
#4  March 03, 2019, 11:53:38 pm
  • *****
  • Shame on you!
    • USA
No problem. If you have additional problems, feel free to ask any time. We will try to help you with anything.
vVv Ryuko718 Updated 10/31/22 vVv