collapse

Author Topic: Helper/ChangeState Issue  (Read 1587 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/ChangeState Issue
« on: June 07, 2014, 03:54:30 PM »
Hi,  been a long time  :P

I been trying to make a helper stick to my character kinda like JoJo characters have.  I looked at various characters that use this system but for some reason it wont work for me...

Here's the code:

(click to show/hide)

Thanks in advance.

P.S. Nice to see my emotes still being used :)

EDIT: Sorry i didn't explain what was wrong.  The animation changes to walk but does not animate, just stays a single sprite.
« Last Edit: June 12, 2014, 12:43:11 PM 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 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/ChangeAnim Issue
« Reply #1 on: June 07, 2014, 06:27:38 PM »
(click to show/hide)

I updated the code, so it works now.  If anyone expert think what I did is wrong, just say.
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/ChangeAnim Issue
« Reply #2 on: June 07, 2014, 11:01:37 PM »
It'll work, but... you're going to be doing rather a lot of this and just like the player, it would make more sense to use changestates so the helper is in walk/crouch/jump states rather than just displaying the animation. It's tidier, as it stands you're going to be coding EVERYTHING into state 10000 which will make it rather longwinded.

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/ChangeAnim Issue
« Reply #3 on: June 08, 2014, 07:24:15 AM »
It'll work, but... you're going to be doing rather a lot of this and just like the player, it would make more sense to use changestates so the helper is in walk/crouch/jump states rather than just displaying the animation. It's tidier, as it stands you're going to be coding EVERYTHING into state 10000 which will make it rather longwinded.

Alright, i'll do that.  Thanks, you helped me back in 2010...so i'll do what ever you recommend.
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 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/ChangeAnim Issue
« Reply #4 on: June 12, 2014, 12:42:31 PM »
Got another issue  >:( Whenever I want the helper to attack...I can only manage to do it while making P1 go to state 200.  I wanna know how I can make the Helper attack while P1 is in state 300 instead of 200.  If you don't understand anything or require anything, just ask.

EDIT: P1 Light Punch is state 200.  Helpers Light Punch is state 10200. I want P1 to go to state 300 while helper is in state 10200.  That make sense?
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/ChangeState Issue
« Reply #5 on: June 13, 2014, 01:52:56 AM »
ID your helper. Use

Triggerall = numhelper(Whatever ID you used) = 1
when you want 300 and

Triggerall = Numhelper(whatever ID you used) = 0
when you want 200

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/ChangeState Issue
« Reply #6 on: June 13, 2014, 02:35:55 AM »
ID your helper. Use

Triggerall = numhelper(Whatever ID you used) = 1
when you want 300 and

Triggerall = Numhelper(whatever ID you used) = 0
when you want 200

 o.O#

Oh man, It worked perfectly! Thanks alot man.  You remind me off FallenAngel, he was great also.
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

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


Ballroom Hallway (1.1 Only/AIGS) by Vegaz by LightFlare
[May 09, 2024, 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]


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