YesNoOk
avatar

Run Sound.. (Read 740 times)

Started by tetsuo9999, October 08, 2007, 03:19:13 pm
Share this topic:
Run Sound..
#1  October 08, 2007, 03:19:13 pm
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
Im trying to have a stepping noise when my character runs..

[mcode][State -3, Running]
type = PlaySnd
trigger1 = stateno = 100 && Animelem = 1
value = s1, 0
loop = 1

[State -3, Running]
type = StopSnd
trigger1 = stateno != 100[/mcode]

It doesn't work.  ???
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Run Sound..
#2  October 08, 2007, 05:04:08 pm
  • ******
  • [E]
    • Mexico
do not use animelem as a trigger, first play aorund wiht it a bit by using time as a trigger.
Re: Run Sound..
#3  October 08, 2007, 05:51:19 pm
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
It works  :D..
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Run Sound..
#4  October 08, 2007, 05:58:55 pm
  • ****
  • "Moyashi tsuku shite yaru..."
I use this:
[mcode][State 100, Run Snd]
type = PlaySnd
trigger1 = AnimElem = 7
Persistent = 0
value = 100,0
loop = 1
channel = 20

[State -3]
type = StopSnd
trigger1 = PrevStateNo = 100
trigger2 = MoveType = H
IgnoreHitPause = 1
Persistent = 0
channel = 20[/mcode]
But still there's a bug when sound doesn't stop when you go to a custom state. (When being thrown, for example)
Re: Run Sound..
#5  October 08, 2007, 07:00:13 pm
  • ******
  • [E]
    • Mexico
yah, because you use st-3, try using st-2 instead.
Re: Run Sound..
#6  October 09, 2007, 06:49:23 pm
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
Thanks.


how can i make a Scream sound when he  gets k.o-ed.. ???
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx
Re: Run Sound..
#7  October 09, 2007, 07:35:48 pm
  • ******
  • [E]
    • Mexico
enable debug, then when killing someone check what states they enter. profit by modifying that state, you can take it from common1.cns then modify. another way is to check in the constants, as for that specific situation there is alreadya  reserved sound no.
Re: Run Sound..
#8  October 11, 2007, 01:05:50 am
  • avatar
  • ***
put your scream under -3 with the trigger !alive
Re: Run Sound..
#9  October 11, 2007, 01:25:39 am
  • *****
  • You know it!
    • viewtiful9.blog124.fc2.com/
I did what "[E]arly Morning Poison" said.
It worked.  ;)
WOO! WOO! WOO!
PSN / XBLA - ViewtifulSuxx