Forum rules - please read before posting.

Direct Movement Style & "Only move when sprite changes" are incompatible - is there a workaround?

Howdy again!

I'm wanting to use both direct control movement and the "only move when sprite changes" function on my Player character. I understand from the dialogue box that pops up that these features are incompatible because the "only move when sprite changes" disables the Rigidbody component, making collision detection impossible.

I am wondering if it is possible at all to work around this limitation via custom script? I want to use the "only move when sprite changes" option because my game features pixel artwork and having the pixel perfect movement forward matches the game's aesthetic better. I am also hoping I won't have to forgo direct control because there are certain custom mechanics I'm implementing that rely on it.

Comments

  • What collisions are you involving? I should note that your Player will still stick to the NavMesh in this mode, so if the only way you're looking to limit motion is by the shape of the NavMesh you should be fine.

    To limit motion further, it should be OK to attach a custom script that corrects the position in LateUpdate, i.e. after AC each frame.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.