Website Navigation Help |
Translate the Website
|
Video Content Creation Reference | |
|
| How to fix a Shake code? | |
| | |
Author | Message |
---|
AASL
Posts : 30 Join date : 2020-12-19 Age : 21
| Subject: How to fix a Shake code? September 1st 2021, 7:37 pm | |
| Hello friends of MUGEN, I have a question, maybe someone could help me I need help with a Shake code, what happens is that I copy the code to the state I want it to be (a hyper), it worked well and everything, the thing is that when I do the hyper, the screen shakes like an earthquake (all right) but what happens is that in case they hit the hyper but the Shake continues, when it should be stopped. Someone knows how to fix this, that when they hit it the tremor stops too. Don't stay even when you shouldn't be. I hope someone helps me, I thank you. | |
| | | AASL
Posts : 30 Join date : 2020-12-19 Age : 21
| Subject: Re: How to fix a Shake code? September 3rd 2021, 9:06 pm | |
| | |
| | | candido159
Posts : 1221 Join date : 2013-05-16 Age : 25
| Subject: Re: How to fix a Shake code? September 4th 2021, 2:37 am | |
| I really don't know how nor does the characters I've worked with doesn't require that coding, but I could suggest you to change the trigger of the envshake or make it shake only if the oppent is hit. | |
| | | LESSARD
Posts : 2221 Join date : 2016-06-19 Age : 45 Location : In your wildest mugen Dreams
| Subject: Re: How to fix a Shake code? September 4th 2021, 6:11 pm | |
| - AASL wrote:
- Hello friends of MUGEN, I have a question, maybe someone could help me
I need help with a Shake code, what happens is that I copy the code to the state I want it to be (a hyper), it worked well and everything, the thing is that when I do the hyper, the screen shakes like an earthquake (all right) but what happens is that in case they hit the hyper but the Shake continues, when it should be stopped.
Someone knows how to fix this, that when they hit it the tremor stops too. Don't stay even when you shouldn't be.
I hope someone helps me, I thank you. Can you post the Envshake code, so we can find te problem, maybe its the duration time but its better to be sure. | |
| | | AASL
Posts : 30 Join date : 2020-12-19 Age : 21
| Subject: Re: How to fix a Shake code? September 4th 2021, 9:17 pm | |
| - candido159 wrote:
- I really don't know how nor does the characters I've worked with doesn't require that coding, but I could suggest you to change the trigger of the envshake or make it shake only if the oppent is hit.
Thank you for your answer, What I want to shake in what the Hyper is prepared, not when I hit it, but what I want to fix is that when they hit the character causing the envshake it is canceled instead of it continuing I do not know if I explain | |
| | | AASL
Posts : 30 Join date : 2020-12-19 Age : 21
| Subject: Re: How to fix a Shake code? September 4th 2021, 9:29 pm | |
| - LESSARD wrote:
- AASL wrote:
- Hello friends of MUGEN, I have a question, maybe someone could help me
I need help with a Shake code, what happens is that I copy the code to the state I want it to be (a hyper), it worked well and everything, the thing is that when I do the hyper, the screen shakes like an earthquake (all right) but what happens is that in case they hit the hyper but the Shake continues, when it should be stopped.
Someone knows how to fix this, that when they hit it the tremor stops too. Don't stay even when you shouldn't be.
I hope someone helps me, I thank you.
Can you post the Envshake code, so we can find te problem, maybe its the duration time but its better to be sure.
I also thought it was because of time but I don't think, since I saw some characters who have it, already coded time and everything, but when they hit it the tremor is canceled along with hyper, from that same char copy the envshake code. But here's the code. __________________ [State 730, EnvShake] type = EnvShake trigger 1 = time = 8 time = 275 ampl = -6 freq = 95 phase = 95 | |
| | | AASL
Posts : 30 Join date : 2020-12-19 Age : 21
| Subject: Re: How to fix a Shake code? September 7th 2021, 8:26 pm | |
| [State 730, EnvShake] type = EnvShake trigger 1 = time = 8 <<<<<<This means your "shake" its activated at 8 ticks from the start of your anim. time = 275 <<<<<<<This means your "shake" duration (in ticks) ampl = -6 freq = 95 phase = 95
1 tick= 1/3 of a second. 60 ticks = 1 second.
Maybe there is an "env.shake" parameter in the hitdef, Can you post it too? maybe ther is the problem.
| |
| | | AASL
Posts : 30 Join date : 2020-12-19 Age : 21
| Subject: Re: How to fix a Shake code? September 12th 2021, 10:33 am | |
| | |
| | | Splash
Posts : 226 Join date : 2020-06-21
| Subject: Re: How to fix a Shake code? September 12th 2021, 11:05 am | |
| Is good put a video here about the problem is more easy to finda a solution.
But let me try help.
The point is: During hyper the screen needs shake, but if the player is hitted (hyper stop), the screen continue shaking, right?
So, maybe you can fix with put "movecontact " as a trigger in the envshake code.
[State 730, EnvShake] type = EnvShake trigger 1 = time = 8 trigger1 = !MoveContact;;;; or Trigger1 = Movecontact != 0;;; trigger1 = Stateno != [5000,5899];;;Also you can try put the hited states to stop the envshake too like this time = 275 ampl = -6 freq = 95 phase = 95 | |
| | | AASL
Posts : 30 Join date : 2020-12-19 Age : 21
| Subject: Re: How to fix a Shake code? September 20th 2021, 11:32 am | |
| Thanks mate, it really served me, but now I do not know if you will know how to fix the following, and that is that now when he canceled it is still shaking, now when they hit me the Shake is canceled, but when I cancel the hyper shake continues, do you know how to fix it? | |
| | | Splash
Posts : 226 Join date : 2020-06-21
| Subject: Re: How to fix a Shake code? September 20th 2021, 4:47 pm | |
| Put the same triggers to the hyper statedef/helper. Maybe there are other shake code.
Put the statedef here. Maybe we can help. | |
| | | AASL
Posts : 30 Join date : 2020-12-19 Age : 21
| Subject: Re: How to fix a Shake code? September 20th 2021, 10:27 pm | |
| Which statedef? The whole status of the notepad let's say?
Well, I already saw that it does not have any other Envshake code, the only thing I am handling is that hyper, but if everything is fixed when they hit it stops shaking, the only thing now is that; I start the hyper, the screen starts shaking (its ok) but if I cancel the hyper, the screen keeps shaking, instead of it stopping shaking, I would like the EnvShake to be canceled at the same time that I cancel the hyper.
can you help me with that? Please comrades, excuse me
| |
| | | candido159
Posts : 1221 Join date : 2013-05-16 Age : 25
| Subject: Re: How to fix a Shake code? September 20th 2021, 10:54 pm | |
| I too am curious if there's a code that stops an envshake so I'm gonna wait for a reply too.
But question, why would you want to add a cancel button to a hyper? | |
| | | Splash
Posts : 226 Join date : 2020-06-21
| Subject: Re: How to fix a Shake code? September 21st 2021, 6:23 am | |
| - AASL wrote:
- Which statedef? The whole status of the notepad let's say?
Well, I already saw that it does not have any other Envshake code, the only thing I am handling is that hyper, but if everything is fixed when they hit it stops shaking, the only thing now is that; I start the hyper, the screen starts shaking (its ok) but if I cancel the hyper, the screen keeps shaking, instead of it stopping shaking, I would like the EnvShake to be canceled at the same time that I cancel the hyper.
can you help me with that? Please comrades, excuse me
Theoretically, each move has a statedef. A weak punch has a statedef. a strong punch has a different statedef. a hyper has its own statedef. No statedef can be the same as another. So, I suggested you paste the statedef of the hyper in question. Try put this trigger in your enshake too: trigger1 = Stateno = XXX ;;(xxx is the number of hyper statedef) [State 730, EnvShake]type = EnvShaketrigger 1 = time = 8trigger1 = Stateno = XXX trigger1 = !MoveContact;;;; or Trigger1 = Movecontact != 0;;;trigger1 = Stateno != [5000,5899];;;Also you can try put the hited states to stop the envshake too like thistime = 275ampl = -6freq = 95phase = 95 | |
| | | AASL
Posts : 30 Join date : 2020-12-19 Age : 21
| Subject: Re: How to fix a Shake code? September 26th 2021, 12:19 am | |
| - candido159 wrote:
- I too am curious if there's a code that stops an envshake so I'm gonna wait for a reply too.
But question, why would you want to add a cancel button to a hyper? Well, it's because of the Super cancels that have some characters xD | |
| | | Sponsored content
| Subject: Re: How to fix a Shake code? | |
| |
| | | | How to fix a Shake code? | |
|
Similar topics | |
|
| Permissions in this forum: | You cannot reply to topics in this forum
| |
| |
| |