collapse

Author Topic: help with coding  (Read 373 times)

0 Members and 1 Guest are viewing this topic.

Offline aznpride87

  • Initiate
  • **
  • Posts: 41
  • Last Login:September 30, 2009, 04:43:16 PM
    • Email
help with coding
« on: March 25, 2009, 04:05:05 PM »
how do i hold a button down so that the action will not stop... for example in mortal kombat i want a character to be able to hold a blocking action. when ever i hold it down, the action keeps breaking for a split second.


thanks for listening



Offline El Chupacabras

  • Forum Member
  • ***
  • Posts: 315
  • Last Login:June 11, 2010, 04:34:36 PM
Re: help with coding
« Reply #1 on: March 25, 2009, 04:44:16 PM »
In the blocking state have the end changestate have a trigger like -

trigger1 = command != "whatever command you use"

... haven't tried it myself but it wouldn't hurt to try. This will end the blocking state whenever you release the buttons.

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: help with coding
« Reply #2 on: March 26, 2009, 01:16:59 PM »
What el chupacabras said its correct......you can add to the trigger an && time >=#
so these will make that if you have just entered the state ans have stopped pressing the buttons, the char doesnt immediatly changes to another state (these is just to make the char finish the stance)


sig made by shullbocka

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: help with coding
« Reply #3 on: March 26, 2009, 01:18:00 PM »
Since you said like in mortal kombat, I assume you want block to be a button, and not actually the back direction.

For this you will need to code a changestate in your cmd, to change to the block state when you press a button.

Offline aznpride87

  • Initiate
  • **
  • Posts: 41
  • Last Login:September 30, 2009, 04:43:16 PM
    • Email
Re: help with coding
« Reply #4 on: March 27, 2009, 02:03:58 AM »
well its for my buront character... he has a blocking ability aswell but it only last for a second. i would like to make it continuous till i let go of the button

Offline Fallen_Angel

  • Global Moderator (out of the office)
  • *****
  • Posts: 1358
  • Last Login:July 04, 2012, 03:11:05 PM
    • Email
Re: help with coding
« Reply #5 on: March 27, 2009, 12:57:10 PM »
we already have post the answers

Search for the blocking statedef ...and change the trigger of the changestate for command!="whaterever"


sig made by shullbocka

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