collapse

Author Topic: Dude Somebody Help Ugh Coding Superpause !!!!!!!!!!  (Read 442 times)

0 Members and 1 Guest are viewing this topic.

Offline Dez

  • Initiate
  • **
  • Posts: 75
  • Last Login:January 02, 2018, 03:23:10 AM
Dude Somebody Help Ugh Coding Superpause !!!!!!!!!!
« on: March 07, 2009, 04:32:12 PM »
ok heres the thing i am editing a brokenmugen common code and i want to make it where when your near danger and get hit is pause for a second. BUT my problem is it stay paused or just keeps going slow. PLease help and thanks in advance.


[State -2, 1]
type = Superpause
trigger1= Parent, Life < 0.2*Parent, LifeMax
Time = 10
darken = 0

my code



Offline kratos

  • The Legendary Ghost of Sparta!
  • MUGEN Content Architect
  • *****
  • Posts: 118
  • Last Login:August 14, 2013, 08:17:33 PM
  • In the end, there will be only chaos!
    • Email
Re: Dude Somebody Help Ugh Coding Superpause !!!!!!!!!!
« Reply #1 on: March 08, 2009, 12:06:31 AM »
ok heres the thing i am editing a brokenmugen common code and i want to make it where when your near danger and get hit is pause for a second. BUT my problem is it stay paused or just keeps going slow. PLease help and thanks in advance.


[State -2, 1]
type = Superpause
trigger1= Parent, Life < 0.2*Parent, LifeMax
Time = 10
darken = 0

my code

You don't need to use a parent trigger since this is going in your own states. I wrote you a code below. I'm sure it could be better, but it works.

If I understand you right, you want the character to pause for 10 ticks when you're health is in danger, and when you get hit. If that is what you're saying, try this code.

[State -2, 1]
type = Superpause
triggerall = life != 0 ;so it doesn't trigger when you're dying and when you hit the ground.
trigger1= Life <= 30 && time < 10 && movetype = H ;only triggers when you're hit, and when you're life is less than or
                                                                      ;equal to 30, you can change this to a lower or higher number,
                                                                      ;and makes sure it only last for 10 ticks, you can also change this
                                                                      ;to your liking.


Time = 10 ;how long the pause last
persistent = 0 ;can't hurt to have it, just makes sure it doesn't keep going.
darken = 0
anim = -1 ;unless you want fx to appear keep this at -1



Here are some things I did not include in the code. But I think you should take a look at. You can add these to code I wrote if you want.

It would be cool if you used a low-health sound.

sound = -1 ;Plays a sound (from common.snd) during SuperPause. The default
               ;is -1, which means no sound is played. If you prepend "S" to
               ;snd_grp, then the sound used will be from the player's own SND
               ;file. For example, sound = S10,0.


You might want to consider this:

unhittable = 0 ; If set to 1, the player cannot be hit during the SuperPause. Set to
                    ;0 to disable this. Defaults to 1.


Offline Dez

  • Initiate
  • **
  • Posts: 75
  • Last Login:January 02, 2018, 03:23:10 AM
Re: Dude Somebody Help Ugh Coding Superpause !!!!!!!!!!
« Reply #2 on: March 08, 2009, 10:39:16 PM »
hey thx this really help alot i was worried no one would answer but you came through. thanks again.

dez

Tags:
 


* IMT Facebook

Help us by Donating!

IMT Discord

Join us at our Discord! Click the image below!

* IMT Shoutbox

Sorry, this shoutbox does not exist.

* Recent Posts

D2TD VS Showcase Thread by D2TD
[November 24, 2024, 09:12:03 AM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by LightFlare
[November 21, 2024, 09:44:09 PM]


Terrordrome: Rise of the Boogeymen Extended Version ( jeepers creepers) version by leonardo
[November 19, 2024, 10:22:47 PM]


Hill of the Nameless(1.1 Only) by Vegaz by LightFlare
[November 19, 2024, 10:50:39 AM]


Golden Axe Returns by gokudo99
[November 19, 2024, 03:59:31 AM]


Barkley Shut Up and Jam! Stages by Vegaz by LightFlare
[November 12, 2024, 11:26:21 AM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[November 11, 2024, 12:35:24 PM]


Eternal Lament Stage 1.1 & 1.0 by O Ilusionista
[November 11, 2024, 12:34:54 PM]


MatreroG's Stages W.I.P. Concepts by MatreroG
[November 11, 2024, 07:00:56 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]

* IMT Calendar

November 2024
Sun Mon Tue Wed Thu Fri Sat
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 [26] 27 28 29 30

SimplePortal 2.3.5 © 2008-2012, SimplePortal