YesNoOk
avatar

Intro not playing. (Read 1097 times)

Started by GigaNova, May 28, 2013, 10:12:49 pm
Share this topic:
Intro not playing.
#1  May 28, 2013, 10:12:49 pm
  • avatar
  • *
    • Netherlands
    • styn2009@hotmail.com
Ok, this is maybe the rookiest question there is but I decided to add intro's after finishing my char and nothing happens.
I tried everything and he just immidiatly goes to state 0 and thats it.

This is the code I am using:
Code:
[Statedef 191]
type = S
ctrl = 0
anim = 190
velset = 0,0

[State 191, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = RoundState = 0
value = 190

[State 191, 2] ;Assert this until you want "round 1, fight" to begin
type = AssertSpecial
trigger1 = 1
flag = Intro

[State 191, 3] ;Change to stand state when done
type = ChangeState
trigger1 = Time >= 54
value = 0
Why isn't it working?
Last Edit: May 28, 2013, 10:17:36 pm by GigaNova
Re: Intro not playing.
#2  May 29, 2013, 06:44:53 am
  • ***
    • USA
Use

[State 191, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = Time = 0
trigger1 = RoundState = 0
value = 190

That should do it
           
Re: Intro not playing.
#3  May 29, 2013, 09:06:43 am
  • avatar
  • *
    • Netherlands
    • styn2009@hotmail.com
Use

[State 191, 1] ;Freeze animation until PreIntro is over
type = ChangeAnim
trigger1 = Time = 0
trigger1 = RoundState = 0
value = 190

That should do it

I changed it but he still goes directly into state 0.
I've debugged it but there is no sign of state 191.
Re: Intro not playing.
#4  May 31, 2013, 08:22:33 am
  • ***
    • USA
Do you have 190 over written?
Use
Code:
[Statedef 190]
type = S
ctrl = 0
velset = 0,0

[State 190, Random]
type = VarRandom
trigger1 = Time = 0
v = 10
range = 0,3
 
[State 190, Intro 1]
type = ChangeState
trigger1 = Var(10) = 0
trigger2 = Var(10) = 2
value = 191

[State 190, Intro 2]
type = ChangeState
trigger1 = Var(10) = 1
trigger2 = Var(10) = 3
value = 192

 to make state 190 switch between multiple intros.
or in your case your only intro?
           
Re: Intro not playing.
#5  May 31, 2013, 08:26:20 am
  • ***
why are you using state 191 but anim 190? is that intentional or just typed it by mistake?

state 190 is the usual intro state, unless you overrode it or state 190 goes to state 191
Re: Intro not playing.
#6  June 01, 2013, 01:47:40 pm
  • avatar
  • *
    • Netherlands
    • styn2009@hotmail.com
Thanks guys, It fixed my problem!

I have one other problem, but don't want to make an entire thread again.
I have made this AI for my char but sometimes when my AI is dead and laying down, it comes back to life (with 0hp) and starts attacking again. This happens randomly (Like another char is jumping above him).

How can I disable this?