Mewdoom Posted October 2, 2016 Hello guys, I try to add a sound that have duration of 10 sec, but it doesnt play to the end. its just looping with the 1-2 sec from the beginning. any idea ? here my decorate: States { Spawn: SUC1 AB 10 Bright A_Look Loop See: TNT1 A 0 A_PlaySound("pyr/wings") TNT1 A 0 A_ChangeFlag("FLOAT",0) TNT1 A 0 A_ChangeFlag("NOGRAVITY",0) TNT1 A 0 A_ChangeFlag("DROPOFF",0) SUC1 AA 4 Bright A_Chase SUC1 A 0 Bright A_SpawnItemEx("WalkFire1",0,0,0,1,0,0,0,128) SUC1 BB 4 Bright A_Chase SUC1 B 0 Bright A_SpawnItemEx("WalkFire1",0,0,0,1,0,0,0,128) SUC1 CC 4 Bright A_Chase SUC1 C 0 Bright A_SpawnItemEx("WalkFire1",0,0,0,1,0,0,0,128) SUC1 DD 4 Bright A_Chase SUC1 D 0 Bright A_SpawnItemEx("WalkFire1",0,0,0,1,0,0,0,128) SUC1 A 0 A_Jump(32,"Grav") Loop 0 Share this post Link to post
scifista42 Posted October 2, 2016 Of course, because you are looping the state with PlaySound. Add another label (named anyhow, for example "See2:") right after the state with PlaySound, that will make the Loop command loop from that point onwards. 0 Share this post Link to post
Mewdoom Posted October 2, 2016 I see :) it work now, thanks :) the sound continue playing when the monster is injured and when he is dead, there is a way to make the sound stop/continue in this cases ? 0 Share this post Link to post
scifista42 Posted October 2, 2016 Play the sound on a unique slot (not auto) and then use A_PlaySound again in the pain and death animations to play another (silent) sound on the same slot, which will override (stop) the previous sound. 0 Share this post Link to post