collapse

Author Topic: problem with multiple transformations  (Read 969 times)

0 Members and 1 Guest are viewing this topic.

Offline 3rdstring

  • mgExomyGD
  • Initiate
  • **
  • Posts: 37
  • Country: Germany de
  • Last Login:July 26, 2024, 04:08:56 PM
    • Skype - mgExomyGD
    • Email
problem with multiple transformations
« on: June 26, 2015, 11:17:00 AM »
Hello I'm making a mugen project and I'm having a problem the my char going through its fourth transformation instead when the move is performed it goes back to the ssj standing state can someone please help or at least have any idea what's wrong ty



Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: problem with multiple transformations
« Reply #1 on: June 26, 2015, 09:45:46 PM »
Urgh, transformations. So much effort for such a minor effect.

Anyway, if you have coded stand correctly the animation should be increasing on the basis of what transformation you're on. I would need to see the code for state 0. If you haven't overridden state 0, that's where your issue lies and something needs to be fixed there.

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: problem with multiple transformations
« Reply #2 on: June 28, 2015, 09:23:33 AM »
Saddly, this is (one) of Mugen's Achilles heel. This will require some custom codes to work and works better in closed games.
Its about time to Mugen to accept it.

Offline 3rdstring

  • mgExomyGD
  • Initiate
  • **
  • Posts: 37
  • Country: Germany de
  • Last Login:July 26, 2024, 04:08:56 PM
    • Skype - mgExomyGD
    • Email
Re: problem with multiple transformations
« Reply #3 on: June 28, 2015, 12:49:43 PM »
this is what i have

; Stand
[Statedef 0]
type = S
physics = S
sprpriority = 0

[State 0, 1]
type = ChangeAnim
triggerall = var(7) = 0 &&  var(18) <= 0
trigger1 = Anim != 0 && Anim != 5
trigger2 = Anim = 5 && AnimTime = 0 ;Turn anim over
value = 0


[State 0, 1]
type = ChangeAnim
triggerall = var(7) = 1
trigger1 = Anim != 10000 && Anim != 10005
trigger2 = Anim = 10005 && AnimTime = 0 ;Turn anim over
value = 10000

[State 0, 1]
type = ChangeAnim
triggerall = var(7) = 2
trigger1 = Anim != 20000 && Anim != 20005
trigger2 = Anim = 20005 && AnimTime = 0 ;Turn anim over
value = 20000

[State 0, 1]
type = ChangeAnim
triggerall = var(7) = 3
trigger1 = Anim != 30000 && Anim != 30005
trigger2 = Anim = 30005 && AnimTime = 0 ;Turn anim over
value = 30000

[State 0, 1]
type = ChangeAnim
triggerall = var(7) = 4
trigger1 = Anim != 40000 && Anim != 40005
trigger2 = Anim = 40005 && AnimTime = 40000 ;Turn anim over
value = 40000

[State 0, 2]
type = VelSet
trigger1 = Time = 0
y = 0

[State 0, 3] ;Stop moving if low velocity or 4 ticks pass
type = VelSet
trigger1 = abs(vel x) < 2
trigger2 = Time = 4
x = 0

[State 0, 4] ;Are you dead?
type = ChangeState
trigger1 = !alive
value = 5050

[State 0, 4] ;fly?
type = ChangeState
trigger1 = pos y != 0
value = 50
ctrl = 1

;---------------------------------------------------------------------------

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: problem with multiple transformations
« Reply #4 on: June 29, 2015, 04:21:38 AM »
So all those are exactly the same. There are a couple of further options

1 is whatever move you're doing is causing that variable to decrease for some reason. This could be an oversight or something in state -2. Basically that var MIGHT be getting altered by the problem state somehow, double check.

2 is that the animation isn't what you think it is. You have potentially re-used an animation number that you've used previously for a different set, or even the sprites aren't what you think they are. Load the document with notepad and use the find tool to double check you don't have duplicate animations. Also scroll through your whole SFF to make sure you haven't doubled the sprites up as well.

Offline 3rdstring

  • mgExomyGD
  • Initiate
  • **
  • Posts: 37
  • Country: Germany de
  • Last Login:July 26, 2024, 04:08:56 PM
    • Skype - mgExomyGD
    • Email
Re: problem with multiple transformations
« Reply #5 on: July 01, 2015, 06:58:13 PM »
I'm still not seeing anything I'm sorry for being such a noob but I rather ask than edit over some other creators stuff and do my own. There not to many tutorials for transformations except for singles transformation. Is there any kind of way I can email my char to you because I still have a lot of spriting to do

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: problem with multiple transformations
« Reply #6 on: July 02, 2015, 03:09:47 AM »
If it's not gigantic it'll go to my hotmail OK.

Offline 3rdstring

  • mgExomyGD
  • Initiate
  • **
  • Posts: 37
  • Country: Germany de
  • Last Login:July 26, 2024, 04:08:56 PM
    • Skype - mgExomyGD
    • Email
Re: problem with multiple transformations
« Reply #7 on: July 02, 2015, 04:23:12 AM »
No I think so far it's just 5mb still got a lot of move to put in the char being slowed down because of transformations well at least the 4th transformation what you email

Offline 3rdstring

  • mgExomyGD
  • Initiate
  • **
  • Posts: 37
  • Country: Germany de
  • Last Login:July 26, 2024, 04:08:56 PM
    • Skype - mgExomyGD
    • Email
Re: problem with multiple transformations
« Reply #8 on: July 02, 2015, 04:25:06 AM »
I'll send it when I get off from work and thank you

Offline 3rdstring

  • mgExomyGD
  • Initiate
  • **
  • Posts: 37
  • Country: Germany de
  • Last Login:July 26, 2024, 04:08:56 PM
    • Skype - mgExomyGD
    • Email
Re: problem with multiple transformations
« Reply #9 on: July 03, 2015, 09:22:59 AM »
Hey cyanide what is your hot mail address I'm off work the next 2 days let me know when your ready

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: problem with multiple transformations
« Reply #10 on: July 03, 2015, 08:42:49 PM »
It's at the bottom of my webpage.

Offline 3rdstring

  • mgExomyGD
  • Initiate
  • **
  • Posts: 37
  • Country: Germany de
  • Last Login:July 26, 2024, 04:08:56 PM
    • Skype - mgExomyGD
    • Email
Re: problem with multiple transformations
« Reply #11 on: July 07, 2015, 04:15:47 AM »
Did you ever get the email cyanide and did you see what I did wrong in there

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: problem with multiple transformations
« Reply #12 on: July 07, 2015, 04:24:43 AM »
Welp, that was easy.

I have just had a look to see what's happening. In state 7002, you set the variable to 1 again. Change it to 4 and you're fine.

Also, for this sort of thing i STRONGLY recommend a more standard increase in your states

7000 = Super Saiyan
7003 = Super Saiyan 3
7005 = Super Saiyan 2
7002 = Super Saiyan 4

Bad plan, and actually not too surprising you stuffed up the varset because it's not at all obvious in a logical sense where you're up to. A couple of other tips. Always comment your statedefs. If each of these was labeled with
;Super Saiyan transformation 1
; Super Saiyan Transformation 2

i wouldn't have needed to do so much work (not that it was difficult work) and it's an excellent idea to comment important explods and/or variables so you can remember what they're for. You have for example, 2 explods in each of these states. Which is which without looking at the .air file to find out? Comment them. Highly useful, especially when you're starting out. You can get lazy later.

Offline 3rdstring

  • mgExomyGD
  • Initiate
  • **
  • Posts: 37
  • Country: Germany de
  • Last Login:July 26, 2024, 04:08:56 PM
    • Skype - mgExomyGD
    • Email
Re: problem with multiple transformations
« Reply #13 on: July 07, 2015, 10:32:49 AM »
Lol thank you very much cyanide I have it working now and you were right I was being lazy  and thanks for the advice

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
[Today at 08:36:39 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]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by ExShadow
[November 02, 2024, 04:54:41 AM]


Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[October 31, 2024, 11:31:36 AM]


Rooftop Skyline(1.1 Only/AIGS) by Vegaz by LightFlare
[October 21, 2024, 12:13:37 PM]


Secluded Base(1.1 Only/AIGS) by Vegaz by LightFlare
[October 17, 2024, 01:21:06 PM]


Ultimate Balrog + stage by ELECTRO
[October 17, 2024, 05:40:31 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