machine gun fire problem

Started by gunz, September 29, 2007, 11:17:37 PM

Previous topic - Next topic

gunz

i am trying to make my char shoot his projectile constantly  while i hold down the key  but it isn't shooting as i hold down the key and i cant see the sprites where he is shooting the projectile. could someone tell me wats wrong.


;---------------------------------------------------------------------------
;rapid fire
[StateDef 789]
type = S
movetype= A
physics = S
juggle = 1
velset = 0,0
ctrl = 0
anim = 789
poweradd = -10

[State 0, Helper]
type = Helper
trigger1 = time%5 = 0
trigger1 = command = "y"
helpertype = normal ;player
name = "rapidfire"
ID = 790
stateno = 790
animelem = 5
pos = 10,-21
postype = p1 ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 789]
type = Changestate
trigger1 = command!= "y"
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;rapid fire
[StateDef 790]
type = S
movetype= A
physics = N
juggle = 1
velset = 7,0
ctrl = 0
anim = 790
poweradd = 0
sprpriority = 2

[State 200, 1]
type = HitDef
trigger1 = 1
attr = S, NA
damage = 30, 3
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 6, 14
sparkno = 0
sparkxy = -10, -26
hitsound = S200, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime = 12
ground.velocity = 0
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = 0
air.hittime = 12

[State 200, end]
type = destroyself
trigger1 = movecontact
trigger2 = time = 50

RAVENOUS31492

I need a revolution.

Renzo F

You should check /x instead of x. In other words, check for command!="holdx" instead of command="x"

In the herlper SCTRL isn't necessary either to check command=y, since is redundant (you'll stay in the state as long as you are pressing y).

gunz

i still get the same effect. it doesnt keep shoting while i holddown the key and it osent show where the sprite is exucting the shot.
here is my code and command.
;rapid fire
[StateDef 789]
type = S
movetype= A
physics = S
juggle  = 1
velset = 0,0
ctrl = 0
anim = 789
poweradd = -10

[State 0, Helper]
type = Helper
trigger1 = time%5 = 0
helpertype = normal ;player
name = "rapidfire"
ID = 790
stateno = 790
animelem = 5
pos = 10,-21
postype = p1 ;p2,front,back,left,right
facing = 1
keyctrl = 0
ownpal = 0

[State 789]
type = Changestate
trigger1 = command!= "holdY"
value = 0
ctrl = 1

;---------------------------------------------------------------------------
;rapid fire
[StateDef 790]
type = S
movetype= A
physics = N
juggle = 1
velset = 7,0
ctrl = 0
anim = 790
poweradd = 0
sprpriority = 2

[State 200, 1]
type = HitDef
trigger1 = 1
attr = S, NA
damage = 30, 3
animtype = Light
guardflag = MA
hitflag = MAF
priority = 3, Hit
pausetime = 6, 14
sparkno = 0
sparkxy = -10, -26
hitsound = S200, 0
guardsound = 6, 0
ground.type = High
ground.slidetime = 5
ground.hittime = 12
ground.velocity = 0
airguard.velocity = -1.9,-.8
air.type = High
air.velocity = 0
air.hittime = 12

[State 200, end]
type = destroyself
trigger1 = movecontact
trigger2 = time = 50

my command:
[command]
name = "holdY"
command = $y
time = 1

;rapid fire
[State -1]
Type = ChangeState
Triggerall = Command = "holdY"
Triggerall = Command != "holddown"
trigger1 = power  >= 1000
trigger1 = statetype = S
trigger1 = ctrl
Value = 789

gunz

will someone plz answer me.  ???

Ichierzen

Dude it was ONE day....chill....

Personally, I've never seen the word "hold" used, usually there's a symbol instead. Maybe that's the issue, idk, look through the other cmd files of other characters to find out if there's any consistency or something.

Quote from: Renzo [a.k.a. Shin Orochi Sachavaca] on September 29, 2007, 11:24:39 PM
You should check /x instead of x. In other words, check for command!="holdx" instead of command="x"

Doesn't seem like you were paying attention to this either, because if I were you, based off this, I'd have changed the "holdY" to "Y". I don't know if that would do anything, or if it was to be done backwards and you did it that way and it didn't change anything, but its not workin' now, so you've gotta do something different.

gunz

i hav post this ? on a different site and still haven't got a reply there for a week  and this code is based off mos of my attacks because i am trying to make a master chief. and  i don't undestand this hold x  thing if my command is the y button.

Azasuke Kaijin

Quote from: gunz on October 01, 2007, 11:18:25 PM
i hav post this ? on a different site and still haven't got a reply there for a week  and this code is based off mos of my attacks because i am trying to make a master chief. and  i don't undestand this hold x  thing if my command is the y button.
The X in commands is the X button scripted for the key configuation in MUGEN
The Answer to the Ultimate Question:

For rare M.U.G.E.N. characters, click here.