collapse

Author Topic: Need some help on a changestate issue  (Read 327 times)

0 Members and 1 Guest are viewing this topic.

Offline Alexziq

  • Infinite Loyalist
  • *****
  • Posts: 2624
  • Last Login:November 10, 2017, 01:10:16 PM
    • Email
Need some help on a changestate issue
« on: November 13, 2010, 12:43:27 PM »
In this move P1 is pushing p2 then it change states to where p1 jumps away using frontedgedist to determine when it changes 


[State 1205, ChangeState]
type = ChangeState
trigger1 = FrontEdgeBodyDist <= 100;10
trigger2 = Time = 150
value = 2913


Now the problem is that I need p2 to change at the exact same time so he's pinned against the wall.

I tried to code it using the same concept on the p2 state

;p2grabbed, dashing
[Statedef 2912]
type    = A
movetype= H
physics = N
velset = 0,0


[State 2912,1]
type = changeanim2
trigger1 = time = 0
value = 2811



[State 2912, ChangeState]
type = ChangeState
trigger1 = FrontEdgeBodyDist <= 100
trigger2 = Time = 150
value = 2944

[Statedef 2944]
type    = A
movetype= H
physics = N
velset = 0,0


[State 2944,1]
type = changeanim2
trigger1 = time = 0
value = 2811

[State 2944, SelfState]
type = SelfState
trigger1 = Time >= 107
value = 5050
ctrl = 0


what it should do is change to the pinning sprites in state 2944 once it hits the wall.

The problem is that it's not changing at a constistant time. If the push is a long way from the edge it changes too soon, if it's close to the edge it lasts too long.

How do I make it so that it changes the same time that p1's state changes.

Please help



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

Virtual Bart Science Fair by Lord_Enemil
[June 15, 2024, 08:23:51 PM]


Classic VS : Cheng / Athena by ELECTRO
[June 13, 2024, 03:03:58 PM]


Marvel vs. Capcom: Eternity of Heroes REMAKE Game Update 1.3.0 - N.A.O.H. by Uche_of_IMT
[June 10, 2024, 11:25:24 PM]


Street Fighter Spec Ops 2021 by O Ilusionista
[June 08, 2024, 01:36:06 PM]


Lasombra's IKEMEN Go Interactive Stages' WIP Topic and Releases by Lasombra Demon
[June 06, 2024, 07:34:10 PM]


Kirby the Dream Battle by O Ilusionista
[June 06, 2024, 01:04:12 PM]


Neo Geo Pocket by malevka2
[June 05, 2024, 10:53:57 AM]


[WIP] Pocket Dimensional Clash 2 by O Ilusionista
[June 03, 2024, 03:18:12 PM]


[BOR] _Avengers United Battle Force_ by O Ilusionista
[June 03, 2024, 03:13:51 PM]


Mega Man & Bass - Dynamo Man by Sir Rousseau by O Ilusionista
[June 03, 2024, 03:09:50 PM]

* IMT Calendar

June 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