SpookyKujo Posted December 30, 2023 Share Posted December 30, 2023 So, I've been working on a Joke Character, and they have a command grab where they throw the opponent on the ground after jump up, like a slam-dunk, but one thing bothers me, because, when the opponent hits the ground (which is a seperate state) a hit sound should be playing when they land on the ground, which doesn't happen and Idk how to fix it, it really bothers me, so, I would be happy to get some help on this issue! I tried different things which I thought might help, but it didn't Code: ;--------------------------------------------------------------------------- ; Opponent thrown into the air [Statedef 1252] type = A movetype= H physics = N velset = 20,35 [State 0, ScreenBound] type = ScreenBound trigger1 = 1 value = 1 movecamera = 1,0 [State 1252, 1] ;Gravity type = VelAdd Trigger1 = 1 y = .9 [State 1252, 4] ;Hit ground type = ChangeState trigger1 = Vel Y > 0 trigger1 = Pos Y >= 0 value = 1253 ;----------------------------------------------------------------------------------------- ; Opponent falling on the ground [Statedef 1253] type = L movetype= H physics = N [State 1253, PlayerPush] type = PlayerPush trigger1 = 1 value = 0 [State 1253, EnvShake] type = EnvShake trigger1 = time = 0 time = 12 freq = 200 ampl = -7 [State 1253, PosSet] type = PosSet trigger1 = Time = 0 y = 0 [State 1253, VelSet] type = VelSet trigger1 = Time = 0 x = 0 y = 0 [State 1253, Explod] type = Explod trigger1 = Time = 0 anim = F62 pos = 0,0 postype = p1 facing = 1 bindtime = 1 removetime = -2 scale = 2,2 sprpriority = -2 [State 1253, Explod] type = Explod trigger1 = Time = 0 anim = F2 pos = 0,0 postype = p1 facing = 1 bindtime = 1 removetime = -2 scale = 1,1 sprpriority = 10 [I usually would've put the Hitsound here] [State 1253, ChangeState] type = SelfState trigger1 = time = 0 value = 5110 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now