collapse

Author Topic: Re: Orbiting projectiles (New part I need help with)  (Read 513 times)

0 Members and 1 Guest are viewing this topic.

Offline Chimoru

  • Forum Member
  • ***
  • Posts: 275
  • Country: United States us
  • Last Login:November 03, 2023, 05:50:34 PM
    • Chimoru's MUGEN
    • Email
Re: Orbiting projectiles (New part I need help with)
« on: April 27, 2014, 12:22:03 PM »
I wanna make an attack where the P1 summons something to orbit around themself like Ms Marvel does, but then do another motion to make it fire at the opponent.  Kinda like Spiral's Dancing Swords, but one or two summon at a time and maybe float above randomly and follow P1.  I dunno.  Like if the projectile was a bird.

Do you guys know any characters that do a move like this so that I can look at the coding to see how it works?
« Last Edit: May 01, 2014, 09:40:07 AM by Chimoru »


My MUGEN YouTube account where you can see edits I'm working on.
http://www.youtube.com/channel/UCMLJDPO5mPwseYXGv-ZE53w

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: Does an attack like this exist? (Orbiting projectiles)
« Reply #1 on: April 27, 2014, 01:14:19 PM »
its quite simple
- get ms marvel code
- put a trigger to check if there is already a helper. If there is, make it change to another state
- at helper code, check it the root is on the new state.
-if so, change the helper state to the attack state.

Offline Chimoru

  • Forum Member
  • ***
  • Posts: 275
  • Country: United States us
  • Last Login:November 03, 2023, 05:50:34 PM
    • Chimoru's MUGEN
    • Email
Re: Does an attack like this exist? (Orbiting projectiles)
« Reply #2 on: April 27, 2014, 03:41:37 PM »
Okay thank you! It'll take some tweaking, but I hope I can do it.  I want it to be a homing projectile too.  I'm still kinda new and I don't make it easy on myself, do I?
« Last Edit: April 28, 2014, 09:26:53 AM by Chimoru »
My MUGEN YouTube account where you can see edits I'm working on.
http://www.youtube.com/channel/UCMLJDPO5mPwseYXGv-ZE53w

Offline Chimoru

  • Forum Member
  • ***
  • Posts: 275
  • Country: United States us
  • Last Login:November 03, 2023, 05:50:34 PM
    • Chimoru's MUGEN
    • Email
Re: Orbiting projectiles (New part I need help with)
« Reply #3 on: May 01, 2014, 08:41:12 PM »


Ok, I got my projectiles to summon, and also to fire forward on command.  My NEW problem is, that I want them to fire one at a time, but they fire TOGETHER and I don't want that. 

I want it to work like this:

Summon 2 helpers like Ms Marvel's orbiters..........DONE!
Press x,y, or z, to fire like a homing projectile.........DONE!
Fire only one at a time, like spiral's Dancing Swords........NOT DONE. :(
Projectiles return to parent at finish........DONE!

Spiral has a code where She summons all 6 dancing sword helpers, and then if you press "x", she fires them separately.  How do I do this with only two?  I'm looking at the code, but I don't know what part makes it behave this way, or if I'm even looking at the right part of code.

In the main part of code, I have it summon helpers 1309 and 1310, with a QCB_X, Y, or Z command, then in each helper code I have a line for

Code: [Select]
[State 1310]
type = ChangeState
triggerall = Root,command != "qcb_x"
trigger1 = Root,command = "x"
trigger1 = IsHelper(1310+var(1))
value = 256
ignorehitpause = 1

[State 1310]
type = ChangeState
triggerall = Root,command != "qcb_y"
trigger1 = Root,command = "y"
trigger1 = IsHelper(1310+var(1))
value = 257
ignorehitpause = 1

[State 1310]
type = ChangeState
triggerall = Root,command != "qcb_z"
trigger1 = Root,command = "z"
trigger1 = IsHelper(1310+var(1))
value = 258
ignorehitpause = 1


I know that's what makes them both fire and that it's not right, but is there a way to label them to trigger each one separately with the same command?  Like make helper 1309 shoot first, and then press it again to make 1310 go? Does this make sense?  I just want it to do the same thing the swords do, but I didn't figure it out, so I'm trying it this way.  Is there a better way? Am I over thinking this?  What do I need to do?

Any help is appreciated, thank you!
My MUGEN YouTube account where you can see edits I'm working on.
http://www.youtube.com/channel/UCMLJDPO5mPwseYXGv-ZE53w

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: Re: Orbiting projectiles (New part I need help with)
« Reply #4 on: May 02, 2014, 01:02:14 AM »
simply limit the var(1) to be at max 1, and it will work. Because the helpers have the ID 1310+var(1), so it would be:
-1310+0
-1310+1

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