collapse

Author Topic: Helper only hits once  (Read 1319 times)

0 Members and 1 Guest are viewing this topic.

Offline A!

  • Novice Coder
  • Infinity Regular
  • ****
  • Posts: 1318
  • Country: United Kingdom gb
  • Last Login:August 03, 2019, 06:10:28 PM
  • Don't Hate If You Cant Create
Helper only hits once
« on: April 24, 2016, 09:25:05 AM »
I am currently having trouble making a helper hit more than once.

This is the helper code.

(click to show/hide)

It's coded the way P.O.T.S does his helpers.

Any help would be appreciated.

If there is any confusion, just ask.


A guy told me one time, "Don't let yourself get attached to anything you are not willing to walk out on in 30 seconds flat if you feel the heat around the corner."

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Helper only hits once
« Reply #1 on: April 24, 2016, 11:42:24 PM »
Have you read state 3006 through? The hitdef that works (the other one does nothing, don't even know why it's there) only works if anim is 3001. You change to 3006 as soon as the state starts. The helper LEAVES the state if it's anim isn't 3001. Basically, you never reach the hitdef, it enters the state and instantly moves on to 3007

Offline A!

  • Novice Coder
  • Infinity Regular
  • ****
  • Posts: 1318
  • Country: United Kingdom gb
  • Last Login:August 03, 2019, 06:10:28 PM
  • Don't Hate If You Cant Create
Re: Helper only hits once
« Reply #2 on: April 25, 2016, 05:48:23 AM »
Have you read state 3006 through? The hitdef that works (the other one does nothing, don't even know why it's there) only works if anim is 3001. You change to 3006 as soon as the state starts. The helper LEAVES the state if it's anim isn't 3001. Basically, you never reach the hitdef, it enters the state and instantly moves on to 3007

Why is it not reaching the hitdefs? The helper does exist and it does work it just doesn't hit more than once. Sorry, I'm not really sure what you mean.

If you could quote what is wrong that would be appreciated.

EDIT: While pressing Ctrl + D, I noticed that state 3000 wouldn't changeanim to 3001 when helper 3005 hits the opponent, maybe that's the problem.

« Last Edit: April 25, 2016, 09:42:16 AM by A! »
A guy told me one time, "Don't let yourself get attached to anything you are not willing to walk out on in 30 seconds flat if you feel the heat around the corner."

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Helper only hits once
« Reply #3 on: April 26, 2016, 04:22:02 AM »
That's because it doesn't. It has a changeanim at pretty much the start of the state that sends you to anim 3006.

[State 3006, Anim]
type = changeanim
trigger1 = anim != 3006
value = 3006

What animation did you think it was using cos i can't see anything to indicate it was, or should have been 3001. I mean, even if you set nothing it would be using 3005 from the previous state.

Offline A!

  • Novice Coder
  • Infinity Regular
  • ****
  • Posts: 1318
  • Country: United Kingdom gb
  • Last Login:August 03, 2019, 06:10:28 PM
  • Don't Hate If You Cant Create
Re: Helper only hits once
« Reply #4 on: April 26, 2016, 07:46:15 AM »
That's because it doesn't. It has a changeanim at pretty much the start of the state that sends you to anim 3006.

[State 3006, Anim]
type = changeanim
trigger1 = anim != 3006
value = 3006

What animation did you think it was using cos i can't see anything to indicate it was, or should have been 3001. I mean, even if you set nothing it would be using 3005 from the previous state.

I'm getting confused here. State 3006 is a helper state which activates after 3005 has hit the opponent.  Changeanim to State 3001 isn't working in state 3000, I don't know why, I'm even using infinite's direct method.

I apologize if I'm sounding stupid, I have been stuck on this for a while.
A guy told me one time, "Don't let yourself get attached to anything you are not willing to walk out on in 30 seconds flat if you feel the heat around the corner."

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Helper only hits once
« Reply #5 on: April 27, 2016, 02:12:13 AM »
Go to statedef 3006.

Scroll down a little bit. You will find the code i referenced. That is setting you TO animation 3006. That's what changeanim does. If you have 3006 and want it used, you need to change the references to 3001 to 3006. If you don't have 3006, swap it to 3001. If you don't have either, you need to add one or the other in and modify the code to make use of it.

And, you haven't posted state 3000 at all? Is that the one you copied this off? If you did, you need to change all references, not just some of them. State 3006 if you look (and we are working with 3005,3006 here because that's what you've posted) references anim 3001 both for the hitdef and the changestate out. And you're not USING anim 3001 anywhere.

Offline A!

  • Novice Coder
  • Infinity Regular
  • ****
  • Posts: 1318
  • Country: United Kingdom gb
  • Last Login:August 03, 2019, 06:10:28 PM
  • Don't Hate If You Cant Create
Re: Helper only hits once
« Reply #6 on: April 27, 2016, 04:18:33 AM »
This is state 3000
(click to show/hide)
A guy told me one time, "Don't let yourself get attached to anything you are not willing to walk out on in 30 seconds flat if you feel the heat around the corner."

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Helper only hits once
« Reply #7 on: April 27, 2016, 04:23:55 AM »
That's all stuff that affects the character. Your hitdef AND changestate in state 3006 should not be referencing anim 3001 at all. As that's the helper. Unless you redirect them to the root/parent for example

trigger1 = parent, anim = 3001

In the hitdef, this won't function properly.

Offline A!

  • Novice Coder
  • Infinity Regular
  • ****
  • Posts: 1318
  • Country: United Kingdom gb
  • Last Login:August 03, 2019, 06:10:28 PM
  • Don't Hate If You Cant Create
Re: Helper only hits once
« Reply #8 on: April 28, 2016, 03:55:56 PM »
That's all stuff that affects the character. Your hitdef AND changestate in state 3006 should not be referencing anim 3001 at all. As that's the helper. Unless you redirect them to the root/parent for example

trigger1 = parent, anim = 3001

In the hitdef, this won't function properly.

My bad, forgot to reply back.

I got it fixed. For some reason time does not work, animelem worked perfectly. I honestly don't know where to start but i changed a lot. It works great now thanks a lot for your patience with me.
A guy told me one time, "Don't let yourself get attached to anything you are not willing to walk out on in 30 seconds flat if you feel the heat around the corner."

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

Ballroom Hallway (1.1 Only/AIGS) by Vegaz by LightFlare
[Today at 11:53:48 AM]


Neon Light Force Demo by kyoman
[May 08, 2024, 12:50:05 PM]


D2TD VS Showcase Thread by D2TD
[May 05, 2024, 10:08:50 AM]


Classic VS : Athena by ELECTRO
[May 02, 2024, 09:44:33 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[April 21, 2024, 12:09:20 PM]


Ultimate E. Honda + stage by ELECTRO
[April 18, 2024, 09:47:24 PM]


Sunset Beach (1.1 Only/AIGS) by Vegaz by LightFlare
[April 16, 2024, 06:55:00 PM]


Wonder Twins 2.0 by brucewayne74, Shining and Skhsato123 by brucewayne74
[April 05, 2024, 06:07:48 PM]


X-Men Training Room (Bright & Dark) Stage 1.1 & 1.0 by MatreroG
[April 05, 2024, 10:55:29 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[April 01, 2024, 11:03:03 PM]

* IMT Calendar

May 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 31

SimplePortal 2.3.5 © 2008-2012, SimplePortal