collapse

Author Topic: How can I make helpers copy the angle of its parent?  (Read 650 times)

0 Members and 3 Guests are viewing this topic.

Offline Trinitronity

  • Infinity Regular
  • ****
  • Posts: 841
  • Country: Germany de
  • Last Login:January 13, 2023, 01:26:38 PM
  • Working on coming back to MUGEN
    • Email
How can I make helpers copy the angle of its parent?
« on: April 27, 2014, 09:18:42 AM »
Something I'm trying out.
I want the helper to create an afterimage helper.
However, I have no idea of how I can make it like that, so the afterimage also copies the angle of the parent helper, since the parent helper spins.
I could have just used a variable, but I am sure I can also do that without it. I just don't know, how...
Thanks in advance!



Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: How can I make helpers copy the angle of its parent?
« Reply #1 on: April 27, 2014, 12:14:08 PM »
-store the parent angle in a var
-read the parent var on the helper
-use that value as angle on the helper

Offline Trinitronity

  • Infinity Regular
  • ****
  • Posts: 841
  • Country: Germany de
  • Last Login:January 13, 2023, 01:26:38 PM
  • Working on coming back to MUGEN
    • Email
Re: How can I make helpers copy the angle of its parent?
« Reply #2 on: April 27, 2014, 12:29:38 PM »
I could have just used a variable, but I am sure I can also do that without it. I just don't know, how...
That would have been exactly my guess, but I don't want to resolve to variables just yet.
Please don't ask me why or question my decision.

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: How can I make helpers copy the angle of its parent?
« Reply #3 on: April 27, 2014, 01:37:31 PM »
sorry, but there is no other way. You need to use variables to store the angle and pass it to the helper, since Mugen is bad coded and you can't really access all the proprieties from an entity.

Offline Trinitronity

  • Infinity Regular
  • ****
  • Posts: 841
  • Country: Germany de
  • Last Login:January 13, 2023, 01:26:38 PM
  • Working on coming back to MUGEN
    • Email
Re: How can I make helpers copy the angle of its parent?
« Reply #4 on: April 27, 2014, 04:31:27 PM »
sorry, but there is no other way. You need to use variables to store the angle and pass it to the helper, since Mugen is bad coded and you can't really access all the proprieties from an entity.
Actually, there IS a way. N-Mario told me about it.
However, since it was complicated, I decided to use variables instead.
Still thanks, though.

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: How can I make helpers copy the angle of its parent?
« Reply #5 on: April 27, 2014, 05:50:25 PM »
mind to point it to me? The only way I can imagine is to use multiple states, which I don't recomend.

Offline Trinitronity

  • Infinity Regular
  • ****
  • Posts: 841
  • Country: Germany de
  • Last Login:January 13, 2023, 01:26:38 PM
  • Working on coming back to MUGEN
    • Email
Re: How can I make helpers copy the angle of its parent?
« Reply #6 on: April 28, 2014, 12:51:54 AM »
Okay:
I recommend Variable method, if it's helpers, but I think you can do it without it.
Though you would NEED to time the angle draw settings exactly to match each other in order to do it correctly.
At the end, he also recommended me the variable method, since the other method is very complicated.

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: How can I make helpers copy the angle of its parent?
« Reply #7 on: April 28, 2014, 02:51:33 AM »
The other method assumes both helpers are spinning at a constant rate always in the same way. Basically you'd be coding the same thing twice and any changes you made to one need to be reflected in the other which is a giant waste of time code and effort when you can just do

angledraw
trigger1 = 1
value = parent, var(x)

And you're done.

Offline Trinitronity

  • Infinity Regular
  • ****
  • Posts: 841
  • Country: Germany de
  • Last Login:January 13, 2023, 01:26:38 PM
  • Working on coming back to MUGEN
    • Email
Re: How can I make helpers copy the angle of its parent?
« Reply #8 on: April 28, 2014, 08:19:21 AM »
Like I said, I decided to use variables at the end.
However, I at least wanted to hear from other people possible variable-free ways, just in case.

Offline O Ilusionista

  • Since 1999 and kicking :)
  • IMT Content Architect
  • *
  • Posts: 12476
  • Country: Brazil br
  • Last Login:November 11, 2024, 12:35:15 PM
  • OpenBOR & Mugen addicted
    • BMT - Brazil Mugen Team
    • Email
Re: How can I make helpers copy the angle of its parent?
« Reply #9 on: April 28, 2014, 09:24:55 AM »
Saddly, you can't. As I said, mugen doesn't lets you get the values of many proprieties, like AngleDraw.

Quote
The other method assumes both helpers are spinning at a constant rate always in the same way
That would be a lot easier.
« Last Edit: April 28, 2014, 09:32:17 AM by .:O Ilusionista:. »

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