News:

MFG's Character of the Month: October 2026 Nominations

Main Menu

Falling off platforms

Started by MDI, December 03, 2011, 07:51:25 AM

Previous topic - Next topic

MDI

Having platform problems. For the most part everything works the way I want it to. However, for certain attacks received while on the edge of the platform the character falls onto another "platform" which I don't want to be there. I'm sure I'm making some mistake that is abundantly obvious. Any ideas?

http://www.youtube.com/watch?v=6uMtjEwg5RI

You can see what I mean at the end of the video.

Here is my code
Spoiler (click to show)


[State 200, 7]; PLATFORM JUMP ONTO (TUNNEL RHINO)
type = ChangeState
triggerall = RoundState = 2
triggerall = StageVar(info.name) = "X3tunnelrhinoplatform"
triggerall = statetype = a
triggerall = PrevStateNo = 40
triggerall = ctrl = 1
trigger1 = ScreenPos Y < GameHeight / 1.74
trigger1 = ScreenPos Y > GameHeight / 1.76
trigger1 = Pos X >= 3
value = 0
ctrl = 1


[State 200, 7]; PLATFORM FALL OFF OF (TUNNEL RHINO)
type = changestate
triggerall = RoundState = 2
triggerall = StageVar(info.name) = "X3tunnelrhinoplatform"
trigger1 = ctrl = 1
trigger1 = ScreenPos Y < GameHeight / 1.74
trigger1 = ScreenPos Y > GameHeight / 1.76
trigger1 = Pos X <= 3
value = 44
ctrl = 0
anim = 44


[State 200, 7]; PLATFORM FALL OFF OF 2 (TUNNEL RHINO)
type = statetypeset
triggerall = RoundState = 2
triggerall = StageVar(info.name) = "X3tunnelrhinoplatform"
trigger1 = ScreenPos Y < GameHeight / 1.74
trigger1 = ScreenPos Y > GameHeight / 1.76
trigger1 = Pos X <= 3
statetype = a
physics = a


ey

Jesuszilla

Pos Y triggers aren't strict enough, and your hitbox probably still triggers when they're below the platform, causing what you see in the video.

I don't recommend using gameheight either.