collapse

Author Topic: How to make a char walk after a intro?  (Read 870 times)

0 Members and 1 Guest are viewing this topic.

Offline benga_abl

  • New Member
  • *
  • Posts: 2
  • Country: Brazil br
  • Last Login:June 02, 2017, 12:30:17 AM
  • Hi! I'm new!!
How to make a char walk after a intro?
« on: February 14, 2015, 08:54:56 PM »
like mvc.



Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: How to make a char walk after a intro?
« Reply #1 on: February 14, 2015, 10:35:55 PM »
Not the BEST idea because of how mugen works but all you do is when the intro state is over, say... state 190 finishes. Change the bit where it sends you to state 0 with ctrl = 0 to ctrl = 1

For eg

[state Changestate]
type = changestate
trigger1 = animtime = 0
value = 0
ctrl = 0

Change it to ctrl = 1, you'll be able to walk (and jump) but you WILL be snapped back to your original position when the match starts because mugen works like that.

Offline benga_abl

  • New Member
  • *
  • Posts: 2
  • Country: Brazil br
  • Last Login:June 02, 2017, 12:30:17 AM
  • Hi! I'm new!!
Re: How to make a char walk after a intro?
« Reply #2 on: February 16, 2015, 10:13:49 PM »
thanks for you answer, but I finally get to a code that prevent the char to come back to his original position (made it by supermistery author):

;statedef -2
;-|Position Reset Override|------------------
[State -2, VarSet: X Position Tracker]
type = VarSet
triggerall = roundstate < 2
trigger1 = roundno >= 1
fv = 21
value = 1

[State -2, VarSet]
type = VarSet
triggerall = roundstate < 2
trigger1 = roundno >= 1
fv = 26
value = 1

[State -2, VarSet: RoundState Sensor]
type = VarSet
triggerall = roundstate < 2
trigger1 = roundno >= 1
fv = 33
value = 1

[State -2, VarSet: Y Position Tracker]
type = VarSet
triggerall = roundstate < 2
trigger1 = roundno >= 1
fv = 34
value = 1

[State -2, PosSet: Prevents Position Reset after Round Banner.]
type = PosSet
trigger1 = roundstate = 2 && fvar(33)
x = fvar(21)
y = fvar(34)
ignorehitpause = 1
persistent = 0

[State -2, VarSet]
type = VarSet
trigger1 = roundstate = 2 && fvar(33)
fv = 33
value = 0

[State -2, VarSet]
type = VarSet
trigger1 = roundstate = 2 && ctrl && fvar(26)
fv = 26
value = 0

[State -2, VarSet: Position Grabber]
type = VarSet
trigger1 = roundstate < 2
fv = 21
value = pos x

[State -2, VarSet: Position Grabber]
type = VarSet
trigger1 = roundstate < 2
fv = 34
value = pos y

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: How to make a char walk after a intro?
« Reply #3 on: February 17, 2015, 12:23:05 AM »
I'm sure that'll work but it's flaming ugly for something that only needs a couple of variables.

Tags: intro 
 


* 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

* 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