collapse

Author Topic: Juspion Punch Problems  (Read 831 times)

0 Members and 2 Guests are viewing this topic.

Offline Beto

  • MUGEN Content Architect
  • *****
  • Posts: 1353
  • Country: Brazil br
  • Last Login:July 07, 2024, 02:31:41 PM
  • Action!!
    • My Youtube page
    • Email
Juspion Punch Problems
« on: June 21, 2016, 01:18:35 PM »
I have a problem to encode a blow, I think something is missing, or something should not be there.

Well, it's a punch in opposing direction, but it must land to be able to go to the next state landing. But instead it goes up without stopping.

Under the code

;---------------------------------------------------------------------------
;Jaspion punch
;---------------------------------------------------------------------------

[Statedef 1200]
type    = A
physics = A
ctrl = 0
anim = 1200
sprpriority = 1


[State 191, 4];
type = PlaySnd
trigger1 = animelem =5
value = 1010,0
channel = 3


[State 1010, Ground FX]
type = Explod
trigger1 = AnimElem = 3
name = "Special Dust"
anim = 8170
pos = -8,3
sprpriority = -4
removetime = -2
scale = .5, .5



[State 1100 2]
type = VelSet
trigger1 = Time = 0
x = 6
y = -3.35

[State 200, 2]
type = HitDef
trigger1 = AnimElem = 3
attr = A, SA
damage = 140,10
animtype = hard
hitflag = MAF
guardflag = HA
sparkno = S4051
guard.sparkno = S4073
sparkxy = 0,-70
hitsound = S5,4
guardsound = S6,0
pausetime = 19,19
ground.hittime = 18
ground.type = high
ground.slidetime = 18
ground.velocity = -5,-6
air.velocity = -5,-6
fall = 1
fall.recover = 0
yaccel = .5



[State 1100, End]
type = ChangeState
trigger1 = Vel Y > 0
trigger1 = Pos Y >= 0
value = 1201

;---------------------------------------------------------------------------
;Jaspion Punch End
;---------------------------------------------------------------------------

[Statedef 1201]
type    = S
physics = S
ctrl = 0
anim = 1201

[State 106, 1]
type = VelSet
trigger1 = Time = 0
y = 0

[State 106, 2]
type = PosSet
trigger1 = Time = 0
y = 0

[State 106, 3]
type = MakeDust
trigger1 = Time = 2
pos = -5,-2
spacing = 1

[State 106, End]
type = ChangeState
trigger1 = Time = 7
value = 0
ctrl = 1

It is this attack After 50 seconds the video



« Last Edit: June 21, 2016, 01:26:53 PM by Beto »



Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Juspion Punch Problems
« Reply #1 on: June 22, 2016, 04:23:59 AM »
I am... surprised that hits. You haven't set movetype... weird. Normally i would expect it to default to I, wonder if the hitdef overrides that if you don't set the value.

trigger1 = Pos Y >= 0
Change that to this
trigger1 = Pos Y >= vel Y

Should force the special landing state rather than it going to state 52 as forced by your physics.

Alternatively set physics to N, and use a type = gravity to make him decrease in height, then your existing code will work.


Offline Beto

  • MUGEN Content Architect
  • *****
  • Posts: 1353
  • Country: Brazil br
  • Last Login:July 07, 2024, 02:31:41 PM
  • Action!!
    • My Youtube page
    • Email
Re: Juspion Punch Problems
« Reply #2 on: June 22, 2016, 11:00:52 AM »
This functional, now he lands. But he does not reach the opponent, not sure if the problem is in HitDef this way:

[State 200, 2]
type = HitDef
trigger1 = animelem= 2 &&!movecontact
attr = A, SA
damage = 140,10
animtype = hard
hitflag = MAF
guardflag = HA
sparkno = S4051
guard.sparkno = S4073
sparkxy = 0,-70
hitsound = S5,4
guardsound = S6,0
pausetime = 19,19
ground.hittime = 18
ground.type = high
ground.slidetime = 18
ground.velocity = -5,-6
air.velocity = -5,-6
fall = 1
fall.recover = 0
yaccel = .5

Offline Cyanide

  • MUGEN Content Architect
  • *****
  • Posts: 813
  • Last Login:March 29, 2019, 06:52:34 AM
    • Mugen Obscurity
Re: Juspion Punch Problems
« Reply #3 on: June 23, 2016, 03:16:11 AM »
Your Y vel is actually pretty low. You may find using physics = N with type = gravity in there and setting the changestate back to the way you had it will work better.

Good chance that the low Y vel is reaching the position a little early. -3.25 with a Y accel on it will revert to -2 and -1 pretty fast. And both of those are only 1 pixel above ground level.

Offline Beto

  • MUGEN Content Architect
  • *****
  • Posts: 1353
  • Country: Brazil br
  • Last Login:July 07, 2024, 02:31:41 PM
  • Action!!
    • My Youtube page
    • Email
Re: Juspion Punch Problems
« Reply #4 on: June 23, 2016, 09:39:47 AM »
It only works after these changes, do not ask me how  ;*))

Thank you for your support  :thumbsup:

[Statedef 1200]
type    = A
movetype= A
physics = A
juggle  = 1
velset = 0,0
poweradd = 50
ctrl = 0
anim = 1200
sprpriority = 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

Spooky House(1.1 Only/AIGS) by Vegaz by LightFlare
[Today at 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]


Eternal Lament Stage 1.1 & 1.0 by MatreroG
[October 11, 2024, 05:03:17 PM]


Classic VS : Balrog by ELECTRO
[October 08, 2024, 04:35:53 PM]


IMT Tutorials and Documentation gone? by tehdevil
[October 06, 2024, 04:25:52 AM]


Justice League Themyscira Stage by Vegaz by LightFlare
[October 04, 2024, 08:23:57 AM]


D2TD VS Showcase Thread by D2TD
[September 30, 2024, 12:29:35 AM]


Mugen Of Solitude:Spacestation 1.0 Updated Stage By Supaman2525 & OldGamer by Aumio Khan
[September 29, 2024, 09:12:20 AM]

* IMT Calendar

October 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