1 (edited by K2 2020-08-13 10:29:09)

Topic: fixing the pushing behavior while making contact at the edge

In default, player pushes the standing opponent forward when the player is falling and making contact with the another at edge of the screen.
I would like to make the player to land in front of the opponent(not replacing their position)

Any help is much appreciated.

Share

Thumbs up Thumbs down

Re: fixing the pushing behavior while making contact at the edge

You can take a look at how this behavior is coded under ControlsScript.cs. Look for the function "pushOpponentsAway".
Notice the use of "_leftBoundary" and "_rightBoundary". Those code segments are what makes the characters switch sides if one tries to jump over the opponent in the corner.

Like UFE? Please rate and review us on the Asset Store!
Questions about the Forum? Check out our Karma FAQ.
Don't forget to check our discord channel.

Re: fixing the pushing behavior while making contact at the edge

Anyone ever mess around with this? Would be great for someone creating an anime style game like guilty gear where this behavior does not happen

Share

Thumbs up Thumbs down